v7.0
ファイルの別バージョンを使用して、指定された ICECompoundNode を置き換えます。
ReplaceICECompoundNode( [InputObjs], [Version] ); |
パラメータ | タイプ | 説明 |
---|---|---|
InputObjs | 選択リストまたは選択 |
置き換えるコンパウンド デフォルト値:引数が指定されていない場合は、現在の選択が使用されます。 |
Version | 文字列 |
現在のバージョンの代わりに適用するターゲット バージョン デフォルト値:引数が指定されていない場合は、最新バージョンのコンパウンドが使用されます。 |
/* This example demonstrates how to use the ReplaceICECompoundNode command by creating and exporting a new ICE compound. The next time Softimage launches you can run the second part of the code (commented at the end) */ NewScene( "", false ); CreatePrim( "Cone", "MeshSurface" ); ApplyOp( "ICETree", "cone", siNode, siPersistentOperation, null, siConstructionModeModeling ); AddICECompoundNode( "Set Data", "cone.polymsh.ICETree" ); SetValue( "cone.polymsh.ICETree.Set_Data.Reference", "Self.PointPosition" ); AddPortToICENode( "cone.polymsh.ICETree.Set_Data.Value", siNodePortDataInsertionLocationAfter ); SetValue( "cone.polymsh.ICETree.Set_Data.Reference1", "Self.PointVelocity" ); AddPortToICENode( "cone.polymsh.ICETree.Set_Data.Value1", siNodePortDataInsertionLocationAfter ); SetValue( "cone.polymsh.ICETree.Set_Data.Reference2", "Self.Color" ); // Create a compound node and export it to disk CreateICECompoundNode( "cone.polymsh.ICETree.Set_Data" ); EditICECompoundProperties( "cone.polymsh.ICETree.CompoundNode", "PointValues", "Data Access", "", "Softimage", "", "", 1, 0, "", 4, 12228200 ); AddExposedParamToICECompoundNode( "cone.polymsh.ICETree.PointValues.Set_Data.Value", "cone.polymsh.ICETree.PointValues" ); AddExposedParamToICECompoundNode( "cone.polymsh.ICETree.PointValues.Set_Data.Value1", "cone.polymsh.ICETree.PointValues" ); AddExposedParamToICECompoundNode( "cone.polymsh.ICETree.PointValues.Set_Data.Value2", "cone.polymsh.ICETree.PointValues" ); EditExposedParamInICECompoundNode( "cone.polymsh.ICETree.PointValues.Value", "PointPosition", "", "", "", "", 0 ); EditExposedParamInICECompoundNode( "cone.polymsh.ICETree.PointValues.Value1", "PointVelocity", "", "", "", "", 0 ); EditExposedParamInICECompoundNode( "cone.polymsh.ICETree.PointValues.Value2", "Color", "", "", "", "", 0 ); ExportICECompoundNode( "cone.polymsh.ICETree.PointValues" ); // Tweak the compound node a little and re-export it to disk AddPortToICENode( "cone.polymsh.ICETree.PointValues.Set_Data.Value2", siNodePortDataInsertionLocationAfter ); SetValue( "cone.polymsh.ICETree.PointValues.Set_Data.Reference3", "Self.mass" ); AddExposedParamToICECompoundNode( "cone.polymsh.ICETree.PointValues.Set_Data.Value3", "cone.polymsh.ICETree.PointValues" ); EditExposedParamInICECompoundNode( "cone.polymsh.ICETree.PointValues.Value3", "Mass", "", "", "", "", 0 ); ExportICECompoundNode( "cone.polymsh.ICETree.PointValues", "", "", "PointValues", "1.1", false ); // Close Softimage (to update the compound database), re-launch Softimage, // and then run the following code: /* NewScene( "", false ); CreatePrim( "Cone", "MeshSurface" ); ApplyOp( "ICETree", "cone", siNode, siPersistentOperation, null, siConstructionModeModeling ); AddICECompoundNode( "PointValues", "cone.polymsh.ICETree" ); ReplaceICECompoundNode( "cone.polymsh.ICETree.PointValues", "1.0" ); */ |