AlanW Posted June 26, 2016 Share Posted June 26, 2016 Hi, I understand that marionette is based on Python but much of the node calls up vs. vectorscript. Is this because VW program only understands VS which is needed to call things from VW? Thanks Quote Link to comment
willofmaine Posted June 27, 2016 Share Posted June 27, 2016 I'm about 60 minutes into looking at and trying to learn the Python scripting, and I too noticed a lost of "vs" stuff, which I suspected was Vectorscript. So, I second this question... Quote Link to comment
Marionette Maven Marissa Farrell Posted June 27, 2016 Marionette Maven Share Posted June 27, 2016 (edited) The simplest way I can put it is that when Python was introduced to Vectorworks, we duplicated the existing Vectorscript calls into a Python module called vs. All of the vs.FUNCTIONNAME() calls are still Python, but they're directly related to the Vectorscript function library (which is Pascal based). You can think of this kind of like translating code to a different language, and in this case we need these functions because they're linked specifically to the back end of VW. Both Vectorscript and Python calls from the vs module will do the same thing. You can still do pretty much anything you could do with Python within Marionette, the vs calls are really only important for manipulating VW data and creating/editing objects. Any math or calculations or external data saving can be done with vanilla Python just as you would if you were using standalone Python. I'm hoping to find the time to show some examples, but I'm not sure when that will be. Please let me know if you need more clarification. Edited June 27, 2016 by MarissaF Quote Link to comment
AlanW Posted June 27, 2016 Author Share Posted June 27, 2016 Marissa, Thanks for this, I thought this was the case. Furthering my understanding. 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.