Init (フィルタ)


詳細

プラグイン項目の Init コールバックは、Softimage がプラグインをロードしたときに発生します。 たとえば、ユーザが Softimage を起動し、ワークグループに接続して、プラグイン マネージャで[すべて更新]をクリックするか、XSIApplication.LoadPlugin を呼び出したときに Init が発生します。


適用対象

カスタム フィルタ


構文

public class <filter_name>

{

	public bool Init( Context in_context )

	{

		...

	}

}
CStatus <filter_name>_Init( CRef& in_context )

{ 

	... 

}
function <filter_name>_Init( in_context )

{ 

	... 

}
def <filter_name>_Init( in_context ):

	...
Function <filter_name>_Init( in_context )

	...

End Function
sub <filter_name>_Init 

{ 

	my $in_context = shift; 

}

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


パラメータ

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


関連項目