v1.0
あるオブジェクトで定義された Weight Map プロパティを、そのオブジェクトに適用されたオペレータに接続します。
ConnectWeightMap( Operator, PropObj ); |
| パラメータ | タイプ | 説明 |
|---|---|---|
| Operator | 文字列 | Weight Map プロパティが入力として接続するオペレータ。 |
| PropObj | 文字列 | 入力としてオペレータに接続する Weight Map プロパティ。 |
/*
This example demonstrates how to connect a weight map to the
amplitude parameter of the push operator on the same object.
*/
NewScene(null, false);
// Set up a grid with a cluster of points in the middle
CreatePrim("Grid", "MeshSurface");
SetSelFilter("Vertex");
SelectGeometryComponents("grid.pnt[20-24,29-33,38-42,47-51,56-60]");
CreateCluster();
// Apply the push operator and a weight map
ApplyOp("Push", "grid", 3, siPersistentOperation, null, 0);
CreateWeightMap(null, "grid.polymsh.cls.Point");
// Connect the push operator to the weight map
ConnectWeightMap( "grid.polymsh.pushop", "grid.polymsh.cls.Point.Weight_Map" ); |