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.

tool_script.png 

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?