CreateEventWizard

導入

v7.5

詳細

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

スクリプト構文

oReturn = CreateEventWizard( [DestinationDir] );

戻り値

CustomProperty オブジェクトとして新しく作成されたイベント ウィザード

パラメータ

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

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

JScript の例

/*
        This example demonstrates how to create an event wizard using 
        the CreateEventWizard command and then generate a very simple 
        custom event using the new wizard.
*/
var eventwiz = CreateEventWizard();
eventwiz.PluginName = "XYZEventPlugin";
eventwiz.FileName = eventwiz.PluginName.Value;
eventwiz.ScriptLanguage = "JScript";
eventwiz.siOnKeyUp = true;
eventwiz.siOnKeyUpName = "XYZOnKeyUpEvent";
// Generates the XYZOnKeyUpEvent implementation and plug-in
GenerateEventPlugin(eventwiz);
var ev = Application.EventInfos("XYZOnKeyUpEvent");
Application.LogMessage(ev.Name);
// Expected results:
// INFO : XYZOnKeyUpEvent

関連項目

GenerateEventPlugin イベント ウィザードのヘルプ CreateCommandWizard CreatePropertyWizard CreateFilterWizard CreateICENodeWizard CreateOperatorWizard