Myke Posted March 14, 2022 Share Posted March 14, 2022 Hullo, I want to make sure I understand this process properly, but VW uses a .vsm file type to represent plugin functionality in python and vectorscript. That reminds me of the SDK build where functionality was turned into a DLL to be read by Vectorworks. Is this a similar case Aside from that I've struggled to find the process of converting a working python script into that .vsm any help would be appreciated! Quote Link to comment
Pat Stanford Posted March 15, 2022 Share Posted March 15, 2022 VSMs (Menu items), VST (Tool items) and VSO (object items) are all made using the Plug-in Editor in the Tools menu:Plug-ins. The Plug-in Editor lets you paste in a script (or edit the script directly), define the parameters, and set the options for the plug-in. 1 Quote Link to comment
Peter Vandewalle Posted March 15, 2022 Share Posted March 15, 2022 If you want to write and edit you Python script in a separate file, you'll need to import that file into the vsm and run the script. To do so write something similar in te plug-in editor: import path.pythonfile as mod mod.main() main() being your main def in pythonfile. 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.