Specifying the plug-in script

The script source code for the command, tool, or object can be created using the Script Editor or a third-party text editor and imported into the plug-in. The source code is saved as part of the plug-in item. Either Python or VectorScript can be used for the code. For third-party or built-in plug-ins, only unobfuscated plug-in scripts can be edited.

To create script code:

1.      Click the Script button from the Plug-in Manager dialog box.

2.      Enter the script source code in the Script Editor window. See Creating and editing script palettes and scripts for more information. For detailed developer-oriented documentation, please navigate to
developer.vectorworks.net.

The script is saved as part of the plug-in.

During plug-in development, scripts can be more easily compiled and tested when developer mode is enabled in the Session tab of Vectorworks preferences.

~~~~~~~~~~~~~~~~~~~~~~~~~

Specifying the plug-in definition

Concept: Scripted plug-ins

 

Was this page helpful?