v7.5
Creates an instance of an event wizard you can use to generate self-installing event plug-ins. The resulting wizard is a CustomProperty nested under the SDK wizard model which itself resides under the scene root.
oReturn = CreateEventWizard( [DestinationDir] ); |
Newly created event wizard as a CustomProperty object.
Parameter | Type | Description |
---|---|---|
DestinationDir | String | The destination folder for the plug-in to generate.
Default Value: If no destination folder is specified, the wizard property will be created in the user path. |
/* 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 Event Wizard help CreateCommandWizard CreatePropertyWizard CreateFilterWizard CreateICENodeWizard CreateOperatorWizard