v7.5
自己インストール カスタム Command プラグインを生成するために使用可能なカスタム コマンド ウィザードのインスタンスを作成します。生成されたウィザードは、シーン ルートの下に置かれる SDK ウィザード モデルの下にネスト化された CustomProperty です。
oReturn = CreateCommandWizard( [DestinationDir] ); |
CustomProperty オブジェクトとして新しく作成されたカスタム コマンド ウィザード
| パラメータ | タイプ | 説明 |
|---|---|---|
| DestinationDir | 文字列 |
生成するプラグインが保存されるフォルダ。 デフォルト値:保存先フォルダが指定されていない場合は、ウィザードのプロパティがユーザ パスに作成されます。 |
/*
This example demonstrates how to create a command wizard using
the CreateCommandWizard command and then generate a very simple
custom command using the new wizard.
*/
var cmdwiz = CreateCommandWizard();
cmdwiz.ScriptLanguage = "Python";
cmdwiz.ScriptingName = "XYZCmd";
cmdwiz.PluginName = "XYZCmdPlugin";
// Generates the command XYZ implementation and plug-in
GenerateCommandPlugin(cmdwiz);
var xyzcmd = Application.Commands("XYZCmd");
Application.LogMessage(xyzcmd.Name);
// Expected results:
// INFO: "XYZCmd" |