ジャンプ先: 概要. 戻り値. MEL 例.

概要

containerAssignMaterial(string $container, string $object)

このコマンドはオブジェクトをコンテナにあるシェーディング グループに割り当てます。コンテナに複数のシェーディング グループがある場合、使用されるシェーディング グループを制御するには、使用したいグループを「mainSG」という名前のノードとしてパブリッシュします。オブジェクトを指定しない場合、このコマンドは選択項目に作用します。

戻り値

なし

引数

変数名 変数タイプ 説明
$containerstringシェーダがあるコンテナです
$objectstringシェーダに接続するオブジェクト、または選択項目に作用する空文字列です

MEL 例

		// Associate the selection to the shading group of $containerName

		containerAssignMaterial $containerName "";

		// Associate the a mesh to the shading group of $containerName

		containerAssignMaterial $containerName $mesh;