v7.0
ICE
指定されたポート(コンポーネント)を介して、2 つのノードを接続します。
ConnectICENodes( [InputPort], [OutputPort] ); |
| パラメータ | タイプ | 詳細 |
|---|---|---|
| InputPort | 文字列 | ターゲット ノード(ICENodeInputPort)の入力ポート。
デフォルト値:指定されていない場合は、ターゲットを選択するよう求められます。 |
| OutputPort | 文字列 | ソース ノード(ICENodeOutputPort)の出力ポート。
デフォルト値:指定されていない場合は、ソースを選択するよう求められます。 |
#"""
#Sample to demonstrate how to connect ICE nodes with ConnectICENode.
#"""
Application.NewScene("", "")
Application.CreatePrim("Cube", "MeshSurface", "", "")
Application.ApplyOp("ICETree", "cube", "siNode", "", "", 0)
Application.AddICENode("$XSI_DSPRESETS\\ICENodes\\GetDataNode.Preset", "cube.polymsh.ICETree")
Application.SetValue("cube.polymsh.ICETree.SceneReferenceNode.reference", "self.pointposition", "")
Application.AddICECompoundNode("Set Data", "cube.polymsh.ICETree")
Application.SetValue("cube.polymsh.ICETree.Set_Data.Reference", "self.pointposition", "")
Application.AddICENode("$XSI_DSPRESETS\\ICENodes\\MultiplyByScalarNode.Preset", "cube.polymsh.ICETree")
Application.SetValue("cube.polymsh.ICETree.MultiplyByScalarNode.factor", 2, "")
Application.ConnectICENodes("cube.polymsh.ICETree.MultiplyByScalarNode.value", "cube.polymsh.ICETree.SceneReferenceNode.value")
Application.ConnectICENodes("cube.polymsh.ICETree.Set_Data.Value", "cube.polymsh.ICETree.MultiplyByScalarNode.result")
# Use the port indices to connect the last nodes.
tree = Application.Dictionary.GetObject("cube.polymsh.ICETree")
setData = Application.Dictionary.GetObject("cube.polymsh.ICETree.Set_Data")
Application.ConnectICENodes(tree.InputPorts(0), setData.OutputPorts(0))
|
AddAttributeToSetDataICENode AddICECompoundNode AddExposedParamToICECompoundNode AddICENode AddNodeToICECompoundNode CleanDisconnectedICENodes CreateICECompoundNode DisconnectICENodePort EditExposedParamInICECompoundNode EditICECompoundPPGLogic EditICECompoundProperties ExplodeICECompoundNode GetICECompoundPortProperties GetICECompoundProperties RemoveAttributeFromSetDataICENode RemoveExposedParamFromICECompoundNode RemoveNodeFromICECompoundNode