## IsApplicable

### 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

Custom Filters

### Syntax

    public class <filter_name>

    {

    	public bool IsApplicable( Context in_context )

    	{

    		...

    	}

    }

    CStatus <filter_name>_IsApplicable( CRef& in_context )

    {

    	...

    }

    function <filter_name>_IsApplicable( in_context )

    {

    	...

    }

    def <filter_name>_IsApplicable( in_context ):

    	...

    Function <filter_name>_IsApplicable( in_context )

    	...

    End Function

    sub <filter_name>_IsApplicable

    {

    	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.

### Context Attributes

Attribute | Description
--- | ---
Input | The element to test.

### See Also

- Init (Filter)
- Match
- Subset
- Filter Callbacks