AddInputToOperator
 
 
 

AddInputToOperator

Introduced

v2.0

Description

Adds a primitive to an existing operator.

Scripting Syntax

AddInputToOperator( Reference, [New] );

Parameters

Parameter Type Description
Reference Object Either the operator (in which case the new input will inserted after the first one) or an existing input primitive (in which case the new input will be inserted after).
New Object New input to add to an existing operator

Default Value: If not specified, a pick session is launched.

Examples

VBScript Example

CreatePrim "Arc", "NurbsCurve", "MyArc1"
CreatePrim "Arc", "NurbsCurve", "MyArc2"
Translate , 0, 0, 2
ApplyOp "Loft", "MyArc1,MyArc2", 3, siPersistentOperation
' connect 'MyArc3' to the new loft operator between 'MyArc1' and 'MyArc2'
CreatePrim "Arc", "NurbsCurve", "MyArc3"
Translate , 0, -1, 1
AddInputToOperator "MyArc1", "MyArc3"