VvierA Posted January 29, 2019 Share Posted January 29, 2019 Hi guys, I created a Marionette object and I'd like to convert to a custom plugin. Is there a simple way to do it? Or is it maybe possible to just copy the code of the marionette object and create a custom plugin object manually? Thanks in advance VvierA Quote Link to comment
Marionette Maven Marissa Farrell Posted January 29, 2019 Marionette Maven Share Posted January 29, 2019 Marionette Objects are the closest thing to a PIO that a Marionette script can be automatically converted to. You can export the Python script for the Marionette Object with the context menu command and create a PIO from it with the Plug In Manager, but the code in there is pretty ugly looking and nearly impossible to read to edit later (also not optimized at all), though it might be what you'll need to do to accomplish this. (I'm not positive if you first need to convert back to a wrapper node prior to exporting the Python script.) Quote Link to comment
VvierA Posted January 29, 2019 Author Share Posted January 29, 2019 Thank you very much for the quick response, Marissa. I learn that trying to 'transfer' the code that was generated by Marionette to a PIO might not be the best idea. Instead - what do you think is the easiest way to make the Marionette Object available in every Vectorworks document as a kind of tool? I'm wondering because I didn't find a way to share the Marionette object other than opening the VW document where it is placed and transfer it by copy and paste to another drawing.... Quote Link to comment
Marionette Maven Marissa Farrell Posted January 29, 2019 Marionette Maven Share Posted January 29, 2019 You can save the Marionette Object as a Red Symbol in your Resource Manager which would allow you to insert it into other documents (you could save this file to your user folder or to your Favorite Files for easy access) When creating the symbol, make sure "Convert to Plug In" is checked in the Symbol Options window to make it a red symbol instead of a black symbol. Quote Link to comment
VvierA Posted January 30, 2019 Author Share Posted January 30, 2019 Thanks you so much Marissa. The symbol works fine. Sorry to bother you again, but I have so many questions... I'd like to implement a PopUP Menu with some options in the OIP of my Marionette Object. I already found the Popup Menu node. It offers three choices, but there is no direct access to edit the number or the names of the choices. Do I need to edit the code of the node to configure it for my purposes or is there another way? Quote Link to comment
Marionette Maven Marissa Farrell Posted January 30, 2019 Marionette Maven Share Posted January 30, 2019 Yep! So the Popup List node is a template for users to edit to make their own lists. You can add/change the "Choice 1, Choice 2, Choice 3" and add more items to that list as well. The outputs will start at 0, so if Choice 1 is selected, 0 will be the output. Does this help? Quote Link to comment
VvierA Posted January 30, 2019 Author Share Posted January 30, 2019 Thank you. So I understand, that I need to edit the python code of the node? I tried to do this to make changes, but it doesn't work. When I made the changes and closed the python script window it tells me 'You have made changes to the text in a read only referenced file....'. I don't know how to duplicate the node template and how to remove the write protection so that I could edit it. Maybe I got something wrong? Quote Link to comment
Marionette Maven Marissa Farrell Posted January 30, 2019 Marionette Maven Share Posted January 30, 2019 Ah - I forgot to mention the step where you delete the line at the very top that starts with #COMMAND. If you delete that entire first line, the script/node will update. Quote Link to comment
VvierA Posted January 30, 2019 Author Share Posted January 30, 2019 Oh and another issue... If I just use the sample with the three choices and I convert my network into a Marionette object the three sample choices do not appear in the OIP. Is this, because it's just a sample and does the popup up list appear automatically if I manage to change the sample entries? Quote Link to comment
VvierA Posted January 30, 2019 Author Share Posted January 30, 2019 Thank you - the trick with deleting the first line worked. But the popup list still doesn't appear in the OIP. Quote Link to comment
Marionette Maven Marissa Farrell Posted January 30, 2019 Marionette Maven Share Posted January 30, 2019 If you name the Popup List node in the OIP with a name, it should appear in the OIP when converted to a Marionette Object. Quote Link to comment
VvierA Posted January 30, 2019 Author Share Posted January 30, 2019 That's it - thank you again, Marissa. Sorry to bother you with such simple questions. Your help is very appreciated. Quote Link to comment
AlanW Posted March 20, 2019 Share Posted March 20, 2019 @VvierAhi you could look at this to see if it helps. https://m.youtube.com/watch?v=bBiai3iD-W0&t=0s&index=71&list=UU-2YxfK2gWwIbsX2ChlzDtA 1 Quote Link to comment
Habev Posted January 11, 2020 Share Posted January 11, 2020 Thanks @AlanW, What criteria do I have to occupy to generate each of the parameters that are inside the "Edit plug-in Definition" Window since in my marionette I have several Wrapper type nodes?. I attached an image. Thanks a lot for sharing your video. 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.