axhake Posted December 3, 2020 Share Posted December 3, 2020 Doe's anyone know if there is a way within Marionette to get the finished script to ungroup it's self when it finishes? I.e., I have a script to create a 3d line from points. When Marionette finishes the 3d line is in a group requiring a manual ungroup to be able to join it to the next line, this can be time consuming when you run the script multiple times. Quote Link to comment
Vectorworks, Inc Employee sbarrett Posted December 7, 2020 Vectorworks, Inc Employee Share Posted December 7, 2020 I am not aware of any way to automatically ungroup geometry. FYI, the reason that Marionette scripts create groups is so that the geometry is "tied" to the script. The script not only creates a group, but names that group with a name related to the script, so that when the script runs again, the named group is deleted and replaced. 2 Quote Link to comment
axhake Posted December 8, 2020 Author Share Posted December 8, 2020 Hi Sara, Thanks for the reply. I am aware of the reasoning behind the grouping being tied to the script it’s just when you have turned you script into a menu tool and are trying to use it to manipulate existing geometry I find some times that I am having to do a whole bunch of extra ungrouping, if there was a way to have the script not create a group after it is run that would be useful. The only way I can think of doing this would be to encapsulate the Marionette script in a Vectorscript and have that ungroup that way, if that is possible? Alan Quote Link to comment
m.graf Posted December 10, 2020 Share Posted December 10, 2020 (edited) Hi axhake have you tried to delete this under BEHAVIOR (but only in all node's you need for your Menu tool) greatings M.Graf Edited December 10, 2020 by m.graf Quote Link to comment
Gregi Posted December 22, 2020 Share Posted December 22, 2020 Hi axhake I made a Node, which is taking all objects out of the group which is made by marionette. But the groups you created on your own will stay there. Its just testet a little, but should do what you want. 2020-12-22_ungroupatend_gim.vwx Quote Link to comment
axhake Posted December 22, 2020 Author Share Posted December 22, 2020 Hi Gregi, Many thanks, will give this a try shortly and let you know how I get on. Quote Link to comment
axhake Posted December 22, 2020 Author Share Posted December 22, 2020 (edited) 😀 That worked providing I add an output node to my wrapper, but unfortunately it doesn't if it's included inside the wrapper so unable to create a menu command. I'e., if you were to select your three nodes and then wrap them it still creates a group when finished which is the problem I have as you are unable to create a menu item unless everything is inside the wrapper. Edited December 22, 2020 by axhake Quote Link to comment
Gregi Posted December 23, 2020 Share Posted December 23, 2020 Ooops, did'nt testing this situation... Sorry, no solution (yet). Maybe I got a good idea while sleeping 🙂 Quote Link to comment
m.graf Posted December 23, 2020 Share Posted December 23, 2020 (edited) i only found this way to ungroup all Objects (in Menu command): Send all obj with the node "set Layer" at the end of the script to a layer (same layer is possible) my node "set Layer" is modified to choose Layername with string not with Popup. greatings M.Graf set layer.vwx Edited December 23, 2020 by m.graf 1 Quote Link to comment
axhake Posted December 23, 2020 Author Share Posted December 23, 2020 It's sound so easy but have been trying for some time to do this. Just about to have dinner so will have a look at this way of doing it later and let you know how I get on. Just on an off chance anyone have any suggestions on how to split a NURBS curve at it's control points using Marionette, been trying to find a way of doing this for some time as well, another one I thought would be so easy...alas NOT 🙁 Quote Link to comment
Gregi Posted December 24, 2020 Share Posted December 24, 2020 Thanks to @m.graf, this works great. I made an example: I just took the original "set layer" node end changed the Layer OIP-Control to an Input-Control. If you put this to your end of network (in Wrapper) it works great! 2020-12-24_ungroupatend_gim.vwx Quote Link to comment
axhake Posted December 24, 2020 Author Share Posted December 24, 2020 I like that, works nicely. Many thanks to you all for all you help with finding a solution to this. Hope you and your families all have a great Christmas and lets hope that next year is good for us all. Alan 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.