Jump to content
axhake

Marionette Ungrouping upon completion

Recommended Posts

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.

Share this post


Link to post

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.

  • Like 2

Share this post


Link to post

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

Share this post


Link to post

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

1928727158_Bildschirmfoto2020-12-10um19_23_18.thumb.png.bd54ecd8c75dc6711ac145f6b0eb4700.png

Edited by m.graf

Share this post


Link to post

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.

 

image.thumb.png.89e0c3feaa37cb531fea2af01d7bc1f0.png

2020-12-22_ungroupatend_gim.vwx

Share this post


Link to post

😀 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 by axhake

Share this post


Link to post

Ooops, did'nt testing this situation...

Sorry, no solution (yet).

Maybe I got a good idea while sleeping 🙂

Share this post


Link to post

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 by m.graf
  • Like 1

Share this post


Link to post

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 🙁

Share this post


Link to post

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

Share this post


Link to post

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.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...