v4.0
operator
接続している ProjectItem
から一部のオペレータ パラメータのコネクタを接続解除します。
この接続解除のメカニズムは、ConnectOperatorParameterコマンドを使用して接続されたパラメータに対してのみ有効です。
このコマンドで接続解除できるパラメータの例:
- Push Op (ほとんどのデフォーム オペレータと類似):パラメータ「ampl」
- Polygon Reduction Op:パラメータ「vertexclusterweight」
DisconnectOperatorParameter( Parameter ); |
| パラメータ | タイプ | 詳細 |
|---|---|---|
| パラメータ | 文字列 | ProjectItem から接続解除される Parameter。 |
//Create a grid and apply to it a push deform
NewScene(null, null);
Grid = CreatePrim("Grid", "MeshSurface", null, null);
Op = ApplyOp("Push", "grid", 3, siPersistentOperation);
SetValue(String(Op)+".ampl", 1, null);
//Create a weight map and set some values
WeightMap = CreateWeightMap(null, null, "Weight_Map", null, null);
PaintWeights(WeightMap, Array(40, 49), Array(-1, -1), 0, 0, null);
//Connect push op's amplitude parameter to the weight map
ConnectOperatorParameter(String(Op)+".ampl", String(WeightMap));
//Disconnect weight map from amplitude parameter
DisconnectOperatorParameter(String(Op)+".ampl");
|