CreateFilterWizard

導入

v7.5

詳細

自己インストール Filter プラグインを生成するために使用可能なフィルタ ウィザードのインスタンスを作成します。 生成されたウィザードは、シーン ルートの下に置かれる SDK ウィザード モデルの下にネスト化された CustomProperty です。

スクリプト構文

oReturn = CreateFilterWizard( [DestinationDir] );

戻り値

CustomProperty オブジェクトとして新しく作成されたフィルタ ウィザード

パラメータ

パラメータ タイプ 詳細
DestinationDir 文字列 生成するプラグインが保存されるフォルダ。

デフォルト値:保存先フォルダが指定されていない場合は、ウィザードのプロパティがユーザ パスに作成されます。

JScript の例

/*
        This example demonstrates how to create a filter wizard using 
        the CreateFilterWizard command and then generate a very simple 
        custom filter using the new wizard.
*/
var filterwiz = CreateFilterWizard();
filterwiz.PluginName = "XYZFilter";
filterwiz.FileName = "XYZFilterPlugin";
filterwiz.ScriptLanguage = "JScript";
filterwiz.FilterName = "XYZFilter";
filterwiz.FilterType = siFilterProperty;
// Generates the XYZFilter implementation and plug-in
GenerateFilterPlugin(filterwiz);
var f = Application.Filters("XYZFilter");
Application.LogMessage(f.Name);
// Expected results:
// INFO : XYZFilter

関連項目

GenerateFilterPlugin Filter Wizard help CreateCommandWizard CreatePropertyWizard CreateEventWizard CreateICENodeWizard CreateOperatorWizard