Jump to content

How you write your code


Raph

Recommended Posts

Hello,

I would like to be able to write my code in python with Marionette to develop my Vectorworks tools.

 

Only I find it difficult to write them in an IDE (PyCharm) which does not necessarily know all the elements of VW

and to copy it in the script editor of VW to test, make modifications and copy it in the IDE again.

 

Do you have any advice for writing?
How do you do it?
Is it possible to import the Marionette settings into an IDE?

 

Attached is a picture of my desktop with my windows open.

Thank you for your answers
my greetings to the whole community

 

Capture_12_08_2022_024647.thumb.png.56fd5231e0fa631bc5adc6ea252e2495.png

Link to comment

Within VectorWorks\VW28.0.2b(671358)_64\Plug-Ins\Marionette.vwr\Scripts\ (vwr is a zip archive) you can find the Marionette.py

Put this one in the pycharm project and then use import Marionette in the script, then all the errors should dissappear.

 

The same applies for the vs.py that you can find at the end of this page.

Search for "IDE and Debugging Python Scripts"

 

https://developer.vectorworks.net/index.php/Python

 

Another trick to make development easier is to add the path of your custom node py to the script option (Tools->PlugIns->Scipt options..) and then import the py module into the actial marionette node instead of copying it everytime from the IDE.

Edited by PatW
  • Like 4
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...