Operator.OutputPorts operator




Returns a collection of OutputPort objects as an OutputPortCollection.

Note: This property is not blocked during a Custom Operator evaluation, but it is normally incorrect to access any output other than the currently evaluated output. For this reason, it is recommended to use OperatorContext.OutputPort or OperatorContext.OutputTarget instead of this property during the Update.


VBScript Example

' This example demonstrates how to access the output port(s) by traversing the object's 
' operator stack. The operator in this case is the generator operator used to generate
' the cone primitive.
NewScene , false
dim cone, op, port
set cone = ActiveProject.ActiveScene.Root.AddGeometry("Cone", "NurbsSurface")
for each op in cone.ActivePrimitive.ConstructionHistory
        Application.LogMessage "Found " & op.OutputPorts.Count & " output port(s)."
        for each port in op.OutputPorts
                Application.LogMessage op.Name & ":" & port.Name & ":" & port.Target2
' Expected result:
'INFO : Found 1 output port(s).
'INFO : Geometry:Port_1:cone.surfmsh