Description
The Init callback for a plug-in item is fired when XSI loads the plug-in. For example, Init is fired when you start XSI, connect to a workgroup, click Update All in the Plug-in Manager, or call LoadPlugin.
Applies To
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 RegisterFilter, with any spaces removed.
Parameters
|
Parameter |
Language |
Type |
Description |
|
in_context |
Scripting and C# |
Context.Source returns the Filter. |
|
|
C++ |
CRef & |
A reference to the Context object. Context::GetSource returns the Filter . |
See Also
• Match
• Subset
SOFTIMAGE|XSI v6.01