[Plugin] Modification to PutOnLayer
-
@jclements said:
Dick,
I tried your version. It does a nice job of listing the layers in alphabetical order, BUT it seems to have broken the function of the original script which is to move ALL NESTED geometry to a target layer.
Do you have a way to fix this?
i just added working layer list sorted by name.
try it, now it should work.
maybe someone could try to update layers list to display in coulumns?
without having to scroll up and down.
-
thank you a lot!!!!
-
wow thanks a lot! that's what I needed
-
Old post, but here is an update for those having difficulty. Use this script in conjunction with:
http://sketchucation.com/forums/viewtopic.php?t=7638
The two combined are brilliant! This is especially true for those that use proper layering techniques, but receive models from Revit Exports.
-
SUPER ... Really LOVE it
-
Hi there! This is a great plugin, but could there be an option to create a new layer, after I have selected a group, and right clicked on it?
It could be useful to right click > Put on Layer > New..
Is it possible?
-
This is a great plugin - thanks!
But I don't want it to move all nested geometry (groups) to the target layer.
e.g. I'll have a nest of, say, three groups - outer group on a wall layer, middle group on an exterior layer and the inner most group on an existing layer.
I'm not experienced in the SketchUp API... In the code I've commented out the two lines of code where the the recursion happens and the plugin now seems to not move all nested geometry to the target layer, which is what I want to happen.
Is this a correct assumption to make or have I corrupted the plugin despite it seeming to work?
-
omit
-
I would like to immensely thank all of you who dedicated themselves to making this amazing tool! Saved my life! God bless you!
@luo said:
@jclements said:
Dick,
I tried your version. It does a nice job of listing the layers in alphabetical order, BUT it seems to have broken the function of the original script which is to move ALL NESTED geometry to a target layer.
Do you have a way to fix this?
i just added working layer list sorted by name.
try it, now it should work.
maybe someone could try to update layers list to display in coulumns?
without having to scroll up and down. -
@orbital said:
This is a great plugin - thanks!
But I don't want it to move all nested geometry (groups) to the target layer.
e.g. I'll have a nest of, say, three groups - outer group on a wall layer, middle group on an exterior layer and the inner most group on an existing layer.
I'm not experienced in the SketchUp API... In the code I've commented out the two lines of code where the the recursion happens and the plugin now seems to not move all nested geometry to the target layer, which is what I want to happen.
Is this a correct assumption to make or have I corrupted the plugin despite it seeming to work?
Hi orbital! seems like I sort of need the exact same thing you did!
Is there any chance you could share the modified rb? Many many thanks in advance! -
the recursion commented out is what makes it work incorrectly. however, it seems like you want to perhaps identify the group or component tag at the parent level as to where the recursion on the child parts go? otherwise, you would need to open the top level group and apply each group or component separately. on the former - that's probably some coding to identify if the parent tag is something other than layer0 and use that tag to then recursively tag all children objects.
there is a downside to that, because now all the children will be assigned tags which means to move the group or component all the recursion will have to happen again, versus having built the object(s) in layer0 and applying the tag to the parent (in which case the children will be shown or hidden when that tag is checked or unchecked).
Advertisement