AddOutputPortByClassID (CustomOperator)
Introduced
5.1
Description
Adds an OutputPort to the custom operator. This method makes it possible to define a connection to a custom operator by specifying the type of object it will connect to, rather than providing an actual existing object as is the case in CustomOperator.AddOutputPort. This is for use in advanced operators, where the port may be optional and dynamically connected after the operator is instantiated.
Note: Use of this method is rarely necessary because an operator must connect to at least one output at the time of creation, and normally only has only one output.
Scripting Syntax
CustomOperator.AddOutputPortByClassID( TargetClassID, [PortName], [PortGroup], [Flags] )
C# Syntax
OutputPort CustomOperator.AddOutputPortByClassID( siClassID in_TargetClassID, String in_PortName, Int32 in_portgroup, Int32 in_flags );Parameters
|
Parameter |
Type |
Description |
|
TargetClassID |
Type of object that can connect to this object, for example siKinematicStateID, siClusterPropertyID, siParameterID or siPrimitiveID. |
|
|
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 |
|
|
Flags |
Mask of port group flags described by siPortFlags. Default Value: 0 |
Return Value
The newly created OutputPort
See Also
Autodesk Softimage v7.5