Subgroups To Layer
-
Hi,
I leave all geometry on layer 0 and just put groups to layers (as i learned that last time)
but i need to put subgroups of groups / components to a specific layer as well..Any advice?
Maybe i'm just too blind to see
-
Those are fine. As long as all your primitive geometry is on Layer0, put anything else where you wish.
-
I have lots of subgroups and subsubgroups in my groups which need to be on the same layer as the "top-group" layer.
Any way to achieve that? It's a killing task to do it by hand with outliner..
-
No idea yet?
It would really be important for the export of my project.
All objects are only imported onto a layer each object is placed on.
Eg. a group with five subgroups is on layer 1. But each subgroup is still on layer 0. The imported result would be that all objects are on layer 0 still...
Things like this always happen when it's getting time critical.. i'd be really thankful for any tip.
-
Select group(s) component(s),open entity info and choose or create a layer.
-
Thanks gilles,
i know,
but there are too many groups within these groups to do it "by hand"..
I did it for some groups with outliner but that's not really a solution.
-
This could be helpful:
http://forums.sketchucation.com/viewtopic.php?t=14975#p114380
The best way is to select the layer in entity info as you create the group but maybe it's to late. -
Copy-paste this one-liner into the Ruby-Console +<enter>.
It changes nested groups' layer to be that of their container.m=Sketchup.active_model;m.start_operation("S2L");m.definitions.to_a.reverse.each{|d|next unless d.group?;d.instances.each{|i|next if i.parent==m||!i.parent.group?;i.make_unique if d.instances[1];i.parent.instances[0].make_unique if i.parent.instances[1];i.layer=i.parent.instances[0].layer}};m.commit_operation
With deep nesting it might need running more than once. It's one step undo-able. If a group is inside a definition it can't take a layer as there might be several instances on different layers so how might we know ? However, if it's inside a group then it uses the layer of that group, after making it unique if necessary.
-
Why do you need the subgroups to be on a layer if their top group is on that layer. Turning off the visibility of the top group's layer will have the same impact whether the subgroups are on that layer or not.
-
GREAT, thanks a lot TIG, i'll give it a try in a minute
@dave r said:
Why do you need the subgroups to be on a layer if their top group is on that layer. Turning off the visibility of the top group's layer will have the same impact whether the subgroups are on that layer or not.
It's about importing a skp-file to 3ds Max where 3ds splits up all groups with subgroups into seperate objects- and puts them to the layer each group was put on in SU. For toggeling visibility it would have been enough to change the layer of the top-group, you're right.
Advertisement