[Plugin] Explode Group to Layers

[Plugin] Explode Group to Layers

Postby TIG » Wed Oct 27, 2010 9:35 am

(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.
explodegroup2layers.rb
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Explode Group to Layers

Postby Rich O Brien » Wed Oct 27, 2010 11:53 am

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
0
There's a frontroom and a backroom....reverse faces
User avatar
Rich O Brien 
Administrator
 

Re: [Plugin] Explode Group to Layers

Postby TIG » Wed Oct 27, 2010 12:15 pm

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 selection explodegroups2layers() or on one group explodegroups2layers(group) or on an array of groups explodegroups2layers([gp1,gp2,gp3]).
Most users will use it the first way.
the optional 'arguments' make it more flexible for use within other tools... :geek:
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Explode Group to Layers

Postby bagatelo » Wed Oct 10, 2012 9:41 pm

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?
0
While the cat's away, the mice will play
User avatar
bagatelo 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: Yahoo Bot and 13 guests

Visit our sponsors: