ジャンプ先: 概要. 戻り値.
キーワード. 関連項目.
フラグ. Python 例.
containerBind([allNames=boolean], [bindingSet=string], [bindingSetConditions=boolean],
[bindingSetList=boolean],
[force=boolean], [preview=boolean])
注意:
オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。
containerBind は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。
コンテナに対して自動バインド操作を行うコンテナ コマンドに付属するアクセサリ
コマンドです。コンテナのパブリッシュ済みインタフェースは、コネクトされているコンテナ テンプレートに bindingSet
を使用することでバインドできます。
戻り値の型は照会モードでは照会フラグが基になります。
bind, container
container, containerProxy, containerPublish, containerTemplate
allNames, bindingSet, bindingSetConditions, bindingSetList, force, preview
: コマンドの作成モードで使用可能なフラグ |
: コマンドの編集モードで使用可能なフラグ |
: コマンドの照会モードで使用可能なフラグ |
: タプルまたはリストとして渡された複数の引数を持てるフラグ |
import maya.cmds as cmds
# query the template binding sets available for this container
#
cmds.containerBind(container1, query=1, bindingSetList=1)
# attempt to bind published names on the container
# using matching information in the bindingSet specified.
# By default only unbound names are considered.
#
cmds.containerBind(container1, bindingSet="MayaBindings")
# Attempt to bind all published names on the container
# using matching information in the bindingSet specified.
# Previously bound names will only be re-bound if the bindingSet
# produces an appropriate match.
#
cmds.containerBind(container1, bindingSet="MayaBindings", allNames=1)
# Forcibly re-bind all published names on the container
# using matching information in the bindingSet specified.
# All previously bound names will be unbound and will only
# be re-bound if the binding set produces an appropriate match.
#
cmds.containerBind(container1, bindingSet="MayaBindings", allNames=1, force=1)
# preview what the results of a binding operation would be, but do
# not actually perform it.
cmds.containerBind(container1, bindingSet="MayaBindings", preview=1, allNames=1, force=1)