Steven Morgan Posted March 13, 2024 Share Posted March 13, 2024 (edited) I have a custom Node that I have inserted into hundreds of Marionette Objects. I want to be able to edit the node and have that automatically update in all of the Plug-In Objects. Currently when I edit the node in the Script Editor or an external editor I have to then go into that node in every object, open the script, save the script and then it updates. I see the code changes take place but they don't update until I re-save that script. Am I missing a step or is this not possible currently? Edited March 13, 2024 by Steven Morgan Quote Link to comment
Antonio Landsberger Posted March 15, 2024 Share Posted March 15, 2024 If you use Vectorworks 2023 or 2024, you can save your Marionette Objects (I assume that that is what you mean by "Plug-In Objects") as a style and thus when you change the network (or code) in one instance of this style, you change it in all instances. If that doesn't work for you, could you please upload a simple version of what you are trying to accomplish? Quote Link to comment
Marionette Maven Marissa Farrell Posted June 5, 2024 Marionette Maven Share Posted June 5, 2024 The way we do this within our default content is the first line of code in each of our nodes, for example: #COMMAND;READONLYREFFILE;[VWLibDef]/Points\Point 3D.py; What this does is it looks for the file referenced (in this case, it's in the Application Folder, but you can use any path you like) and pulls the code from the python file stored there. To save from the script editor, you'd use #COMMAND;REFFILE;[path to python file]; (so without the READONLY) Right now, it appears that you'd still need to enter/exit the script editor for those nodes, but you wouldn't need to copy-paste. I'm trying to figure out how to force the sync now. However, Antonio's suggestion of using Marionette Object Styles is a great way to go, assuming all of the objects use the same underlying network. 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.