AddInputToOperator

Description

Adds a primitive to an existing operator. It will launch a pick session if the new primitive to connect is not specified.

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

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"


SOFTIMAGE|XSI v6.01     

Return to Softimage XSI Index