IsApplicable


詳細

Softimage は、サブコンポーネントのフィルタをメイン コマンド エリアのフィルタ リストに追加するかどうかを決定するために、IsApplicable コールバックを使用します。 Softimage には、サブコンポーネントのフィルタが現在の選択に適用可能かどうかを判断するためのデフォルト基準が独自に定められています(基本的に Softimage は、選択オブジェクトがサブコンポーネントを持つかどうかをチェックします)。 Softimage はデフォルト基準が満たされない場合にのみ IsApplicable コールバックを呼び出します。


適用対象

カスタム フィルタ


構文

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> は、PluginRegistrar.RegisterFilter の呼び出しで指定されている名前です。この名前に含まれるスペースはアンダースコアに置き換えられます。


パラメータ

パラメータ 言語 タイプ 説明
in_context スクリプティングおよび C# コンテキスト Context.SourceFilter を返します。
C++ CRef& Context オブジェクトへのリファレンス。 Context::GetSourceFilter を返します。


コンテキスト属性

属性 詳細
Input テスト対象のエレメント。


関連項目