Term


Description

Use this callback to free memory allocated in the Init callback or perform other cleanup functions (typically used for C++ plug-ins). Generally, this callback is fired aft fired when a plug-in is removed from Softimage (just before Softimage calls XSIUnloadPlugin). For example, Term is triggered when you exit Softimage or unload the plug-in (either from the Plug-in Manager or by calling XSIApplication.UnloadPlugin).

However, there are some variations, depending on the type of plug-in item.

Plug-in Item Description
Property Fired when a property is deleted.
Menu Term is fired only if Init was fired at some point. If the menu was never opened, then Init was never fired and Term has nothing to do.

Applies To

Custom Display Host


Syntax

public class <plugin-item_name>
{
        public bool Term( Context in_context )
        {
                ...
        }
}
CStatus <plugin-item_name>_Term( CRef& in_context ) 
{ 
        ... 
}
function <plugin-item_name>_Term( in_context ) 
{ 
        ... 
}
def <plugin-item_name>_Term( in_context ):
        ...
Function <plugin-item_name>_Term( in_context )
        ...
End Function
sub <plugin-item_name>_Term 
{ 
        my $in_context = shift; 
}

<plugin-item_name> is the name used to register the plug-in item in XSIUnloadPlugin, with any spaces converted to underscores.


Parameters

Parameter Language Type Description
in_context Scripting and C# Context Context.Source returns the plug-in item.
C++ CRef& A reference to the Context object.

See Also