Introduced
6.0
Description
Returns the specified Port object for the operator. PortGroup and PortGroupInstance (index) arguments are ignored for scripted operators created using the scripted operator editor (also known as runtime scripted operators). For all other types of operators if PortGroup and PortGroupInstance are not specified, the first port found with the given Name is returned.
Note: This is the Python-compliant version of the Operator.Port property. Since Python does not support input parameters on properties, Operator.Port will fail in Python.
Scripting Syntax
Operator.GetPort2( Name, [PortGroup], [PortGroupInstance] )
C# Syntax
Port Operator.GetPort2( String in_bstrPort, String in_bstrPortGroup, Int32 in_lPortGroupInstance );
Parameters
|
Parameter |
Type |
Description |
|
Name |
Name of a port |
|
|
PortGroup |
Name of a port group. Default Value: "" (empty string) |
|
|
PortGroupInstance |
The port group instance index. This argument does not apply to runtime operators. If you don't provide a port group this argument is ignored. Default Value: 0 |
See Also
SOFTIMAGE|XSI v6.01