
v3.0
OutputPort オブジェクトのコレクションを OutputPortCollection として戻します。
注:このプロパティは、カスタムオペレータの評価中はブロックされませんが、現在評価されている出力以外の出力にアクセスするのには適していません。このため、更新中はこのプロパティの代わりにOperatorContext.OutputPortまたはOperatorContext.OutputTargetを使用することをお勧めします。
// get accessor OutputPortCollection rtn = Operator.OutputPorts; |
'
' 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
next
next
' Expected result:
'INFO : Found 1 output port(s).
'INFO : Geometry:Port_1:cone.surfmsh |