Update
 
 
 

Update


Description

Update is called whenever an operator is expected to evaluate itself. This is the most important callback for a custom operator. The data is read, manipulated, and written back to the connected objects all within the scope of the Update callback.

Note There are a number of tricks to aid in the optimization of your operator implementation in the Custom Operators section.

Applies To

Custom Operators


Syntax

public class <operator_name>
{
        public bool Update( Context in_context )
        {
                ...
        }
}
CStatus <operator_name>_Update( CRef& in_context )
{ 
        ... 
}
function <operator_name>_Update( in_context )
{ 
        ... 
}
def <operator_name>_Update( in_context ):
        ...
Function <filter_name>_Update( in_context )
        ...
End Function
sub <operator_name>_Update 
{ 
        my $in_context = shift; 
}

<operator_name> is the name specified in the call to PluginRegistrar.RegisterOperator, with any spaces converted to underscores.


Parameters

Parameter Language Type Description
in_context Scripting and C# OperatorContext Context.Source returns the CustomOperator.
C++ CRef& A reference to the OperatorContext object. Context::GetSource returns the CustomOperator.

See Also