
v4.0
Returns a Boolean value indicating whether the operator is connected to at least one OutputPort (true=is connected; false=is not connected).
// get accessor Boolean rtn = Operator.IsConnected; |
/*
This example demonstrates how to test to see whether an operator
is connected to a scene object or not.
*/
NewScene( null, false );
var obj = CreatePrim( "Cube", "MeshSurface" );
// Create an unconnected operator
var op = XSIFactory.CreateObjectFromPreset( "Bend", "Operators" );
// Test if operator is connected (should return false)
Application.LogMessage( op.Name + " is connected = " + op.IsConnected );
// Now connect the operator to a cube and test it again (should return true)
op.Connect( obj );
Application.LogMessage( op.Name + " is connected = " + op.IsConnected );
// Expected result:
//INFO : Bend Op is connected = false
//INFO : Bend Op is connected = true
|