Searching a plugin to deeply explode nesting groups
-
@krisidious said:
Great. Now I said bomb and exploding on the internet.
Dear FBI, CIA, NSA et cetera...
I am not a terrorist. mkay? thanks and bye.
You are on the black list now, lol
-
Thank you very much for all your answers. It seems that there is no existing script that does exactly what I need. Thus I started to have a deeper look into the Ruby documentation of SketchUp. Actually it was pretty easy to implement the needed behaviour for my own.
You can find a first version of my "Flatten Hierarchy" script as attachment to this posting (just copying it to your plugins folder). Any comments or improvements are highly appreciated since even if I am a software developer I have never been working with Ruby before.
Here is a short description explaining what the script does:
Traverses through the selected entities and deeply explodes all nested groups and components that only have groups and components (but no actual geometry like edges or faces) as direct children. In other words this script flattens the hierarchy of the selected entities by bringing all nested groups and components up to the current level of selection without interfering any geometry.
-
That's great Mythos... It will come in handy I'm sure. Can't wait to see what you come up with next.
-
wow that's was fast! great plug-in very simple and efficient
it's is even useful to know if the group/component have any loose geometry inside by looking the disabled button on the context menu.
-
Thanks for the kind words. Actually I have had a lot of fun learning the SketchUp API.
Do you think it's worth to submit the script to the SketchUp extension library?
-
Absolutley... But, I would submit to the Plugin Store instead.
-
@mythos said:
Thank you very much for all your answers. It seems that there is no existing script that does exactly what I need. Thus I started to have a deeper look into the Ruby documentation of SketchUp. Actually it was pretty easy to implement the needed behaviour for my own.
You can find a first version of my "Flatten Hierarchy" script as attachment to this posting (just copying it to your plugins folder). Any comments or improvements are highly appreciated since even if I am a software developer I have never been working with Ruby before.
Here is a short description explaining what the script does:
Traverses through the selected entities and deeply explodes all nested groups and components that only have groups and components (but no actual geometry like edges or faces) as direct children. In other words this script flattens the hierarchy of the selected entities by bringing all nested groups and components up to the current level of selection without interfering any geometry.
does exactly what is written; so:
if a component contains groups
it is exploded and disappears as a component in the component listthis might be a problem
it is not a default, but one should be aware of that
possible to choose? explode ONLY groups or ONLY components?
-
@mythos said:
Thank you very much for all your answers. It seems that there is no existing script that does exactly what I need. Thus I started to have a deeper look into the Ruby documentation of SketchUp. Actually it was pretty easy to implement the needed behaviour for my own.
You can find a first version of my "Flatten Hierarchy" script as attachment to this posting (just copying it to your plugins folder). Any comments or improvements are highly appreciated since even if I am a software developer I have never been working with Ruby before.
Here is a short description explaining what the script does:
Traverses through the selected entities and deeply explodes all nested groups and components that only have groups and components (but no actual geometry like edges or faces) as direct children. In other words this script flattens the hierarchy of the selected entities by bringing all nested groups and components up to the current level of selection without interfering any geometry.
does exactly what is written; so:
if a component contains groups
it is exploded and disappears as a component in the component listthis might be a problem
it is not a default, but one should be aware of that
possible to choose? explode ONLY groups or ONLY components?
-
Hello, sorry for digging up years old thread. I wonder if anyone can help this work with the newest version of sketchup.
-
@tammaotrinhtham said:
Hello, sorry for digging up years old thread. I wonder if anyone can help this work with the newest version of sketchup.
I just installed it in SketchUp 2017 and it works as described. What makes you think it doesn't work?
Advertisement