AddInputPort (CustomOperator)
Introduced
4.0
Description
Adds an InputPort to the custom operator.
Note: When defining a CustomOperator it is good practice to add the output ports before the input ports. This enables Softimage to correctly identify I/O ports.
Scripting Syntax
CustomOperator.AddInputPort( PortTarget, [PortName], [PortGroup], [InsertAt], [Flags] )
C# Syntax
InputPort CustomOperator.AddInputPort( 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 "In" + the Parameter.ScriptName of the object being connected, for example "Inposx".
|
|
|
PortGroup |
Index of the port group. Default Value: -1 |
|
|
InsertAt |
Index of the port at a specific index. (Not Implemented) Default Value: -1 |
|
|
Flags |
Mask of port group flags described by siPortFlags. Default Value: 0 |
Return Value
The newly created InputPort.
See Also
Examples
• See CustomOperator.AddInputPort.1.js
Autodesk Softimage 2011