//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");
|