DisconnectOperatorParameter

Introduced

v4.0

Description

Disconnects some operator Parameter's divot from a connected ProjectItem. This disconnection mechanism is supported only for parameters that were connected using ConnectOperatorParameter command.

Example of parameters which can be disconnected using this command:

- Push Op (similar to most deform operators): parameter "ampl"

- Polygon Reduction Op: parameter "vertexclusterweight"

Scripting Syntax

DisconnectOperatorParameter( Parameter );

Parameters

Parameter Type Description
Parameter String Parameter to be disconnected from ProjectItem.

Examples

JScript Example

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

See Also

ConnectOperatorParameter