Description
Softimage uses the IsApplicable callback to determine whether to add subcomponent filters to the filter list in the main command area. Softimage has its own default criteria for determining whether a subcomponent filter is applicable to the current selection (basically, Softimage checks if the selected objects have subcomponents). Softimage calls your IsApplicable callback only if its default criteria are satisfied.
Applies To
Syntax
// C#
public class <filter_name>
{
public bool IsApplicable( Context in_ctxt )
{
...
}
}
// C++ bool <filter_name>_IsApplicable( CRef& in_context ) { ... } // JScript function <filter_name>_IsApplicable( in_context ) { ... } ' VBScript Function <filter_name>_IsApplicable( in_context ) ... End Function # Python def <filter_name>_IsApplicable( in_context ): ... # PerlScript sub <filter_name>_IsApplicable { 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.Source returns the Filter. |
|
|
C++ |
CRef & |
A reference to the Context object. |
Context Attributes
|
Attribute |
Description |
|
Input |
The element to test. |
See Also
• Match
• Subset
Autodesk Softimage v7.5