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 LoadPlugin.

Applies To

Custom Filters

Syntax

// C#
public class <filter_name>
{
   public bool Init( Context in_ctxt )
   {
       ...
   }
}

 

// C++
CStatus <filter_name>_Init( CRef& in_context )
{
   ...
}

// JScript
function <filter_name>_Init( in_context )
{
   ...
}

# Python
def <filter_name>_Init( in_context ):
   ...

' VBScript
Function <filter_name>_Init( in_context )
   ...
End Function

# PerlScript
sub <filter_name>_Init 
{
   my $in_context = shift; 
}

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

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

IsApplicable

Match

Subset

Filter Callbacks



Autodesk Softimage v7.5