プラグイン項目の 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 の呼び出しで指定されている名前です。この名前に含まれるスペースはアンダースコアに置き換えられます。
パラメータ | Language | タイプ | 説明 |
---|---|---|---|
in_context | スクリプティングおよび C# | コンテキスト | Context.Source は Filter を返します。 |
C++ | CRef& | Context オブジェクトへのリファレンス。 Context::GetSource は Filter を返します。 |