OperatorContext.OutputTarget operator

Description

Returns a Variant containing the Softimage object that is being written (the target object) connected to the output port. The only state of the Softimage scene that an operator should modify during its evaluation is via methods and properties available on the object returned by this property. For example, if an operator writes to a ClusterProperty (Weight Map, Vertex Color Property, etc.) then this property will return the ClusterProperty and the operator code can set the values of the property via ClusterProperty.Elements.

In the case of a multi-output operator the operator is called once per output, and this property will return the currently evaluating target. In this case it may be necessary to also call OperatorContext.OutputPort to determine the name of the current output port, in order to know which output is being evaluated.

Note: If the operator is writing to a Parameter then use OperatorContext.OutputPort instead of this property.

C# Syntax

// get accessor
Object rtn = OperatorContext.OutputTarget;

See Also

CustomOperator.AddOutputPort OperatorContext.OutputPort