| スクリプト (MEL) |
MEL でのみ使用可能 |
containerAutobind |
カテゴリ内: 一般 |
ジャンプ先: 概要. 戻り値. MEL 例.
containerAutobind
このスクリプトはコンテナに自動バインド操作を実行します。
引数
| 変数名 |
変数タイプ |
説明 |
| $container | string | 使用するコンテナ、または "" で選択項目を使用
|
| $bindingSet | string | 使用する bindingSet、または "" で既定の bindingSet を自動的に定義
|
| $autobindAll | int | すべてのパブリッシュ済みの名前を処理(既定ではバインドされていない名前のみが処理)
|
| $force | int | 以前にバインドされたアトリビューとが一致しない場合、強制的にバインド解除(既定では一致しない名前はスキップ)
|
// autobind myContainer using binding set "MyBindings".
// Since all option is used, all published names (bound and unbound)
// will be processed.
// Since force option is used, any unmatched name will be unbound.
containerAutobind(myContainer, "MyBindings", 1, 1);
// autobind myContainer using a default binding set
// Since all option is not set, only unbound names will be processed.
containerAutobind(myContainer, "", 0, 0);
// autobind myContainer using the default binding set.
// All published names will be processed.
// Because force option is not used, names not
// matched will be left with their current bindings
string $bindingSet = containerDefaultBindingSet();
containerAutobind(myContainer, $bindingSet, 1, 0);