[Plugin] Explode Group to Layers
-
(c) TIG 2010
Explodes a Group, BUT unlike built-in.explode
method, which puts Exploded Entities that are on 'Layer0' onto the Layer of the original Group, this keeps all of the Exploded Entities' Layers unchanged.
Usage:explodegroup2layers()
If no argument is given then the current Selection is used and any Groups in it are processed.
If an argument is given and it's a Group then that is processed.
e.g.explodegroup2layers(group)
If an argument is given and it's an Array then any Groups in that Array are processed.
e.g.explodegroup2layers([group1,group2,group3])
Probably most useful inside other tools to keep exploded entities on the expected layers.Put into Plugins folder [or copy code into another tool]... -
This is run via the Ruby Console? Any chance of a little pictorial? I have tried it throught the Console but the second option has my head in a vice
-
Normally you'll just select some groups and type
explodegroups2layers
in the Console.
When it's called within another tool you can set it to run on a selectionexplodegroups2layers()
or on one groupexplodegroups2layers(group)
or on an array of groupsexplodegroups2layers([gp1,gp2,gp3])
.
Most users will use it the first way.
the optional 'arguments' make it more flexible for use within other tools... -
I'm looking for a plugin that creates a new layer for each object in the scene or in the selection, either component or group, without considering subgroups. Has anyone done something like this?
Advertisement