Init (Filter)


Description

The Init callback for a plug-in item is fired when Softimage loads the plug-in. For example, Init is fired when you start Softimage, connect to a workgroup, click Update All in the Plug-in Manager, or call XSIApplication.LoadPlugin.


Applies To

Custom Filters


Syntax

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

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


Parameters

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

See Also