AddOutputPort (CustomOperator)
Introduced
4.0
Description
Adds an OutputPort to the custom operator. It is recommended that each operator uses only a single output, but multiple outputs are supported. Warning: This method is not available after the operator has been connected (see Operator.Connect).
Scripting Syntax
CustomOperator.AddOutputPort( PortTarget, [PortName], [PortGroup], [InsertAt], [Flags] )
C# Syntax
OutputPort CustomOperator.AddOutputPort( Object in_PortTarget, String in_PortName, Int32 in_portgroup, Int32 in_InsertAt, Int32 in_flags );Parameters
|
Parameter |
Type |
Description |
|
PortTarget |
Object or full name of the object to connect to the port. Softimage will remember the full name of the object, but this can be overridden at connection time to connect to a different object (see Operator.Connect and Operator.ConnectToGroup). |
|
|
PortName |
Name of the port Default Value: The default name is "Out" + the Parameter.ScriptName of the object being connected, for example "Outposx".
|
|
|
PortGroup |
Index of the port group. Default Value: -1 |
|
|
InsertAt |
Index of the port at a specific index. Default Value: -1 |
|
|
Flags |
Mask of port group flags described by siPortFlags. Default Value: 0 |
Return Value
The newly created OutputPort.
See Also
Examples
• See CustomOperator.AddOutputPort.1.js
Autodesk Softimage 2011