Do you know if there is a plugin that puts all nested groups and components to layer 0? I used to have a plugin that did it, then removed it for some reason. Can’t find anything out there now that does this.
Not sure why you wrote this in your post reply above…? Who are you implying “we” to be? The title of this thread is exactly this “Moving objects back to Layer0”. It doesn’t say, "The Basics Of Moving objects back to Layer0". Based on that, I don’t see any reason why anyone would need to consider not adding advanced talk in this thread, as it’s obvious how general the discussion can be based on the title. Stay humble.
Maybe using “selection toys” to select only groups or components and changing their tag status is the quickest workaround! or one of the other selection filters
It’s rare that I, or I’m guessing others would have raw geometry exposed in the same container as groups or components, so the selection toys doesn’t help much. I need something that takes all of the nested objects back to the untagged layer. The quickest way I can think of is to take the whole object with all nested objects inside that should be changed back, copy that object, paste in place in a new file, delete all tags and choose delete tags not geometry option, then copy that object and paste back in place in the old file. A few clicks instead of potentially dozens (depending on the level of nested containers holding geometry).
I appreciate the suggestion and reply… Would be really nice if a plugin existed to change nested geometry to a certain tag.
This extension from @TIG will do that…
I tried it and it didn’t work, I’ll try again and report back! Thanks!
My extension ‘Default Layer Geometry’ only fixes incorrect layer use for geometry i.e. edges and faces…
To fix layers used for nested groups/instances you need something else…
This might do…
https://sketchucation.com/pluginstore?pln=TIG_Set_Layer
I’ve written a short script which reassigns the layer/tags of all groups/instances to Layer0/Untagged when they are nested within any preselected groups/instances…
It mines through any level of nesting…
This RB file needs to be in the Plugins folder before SketchUp starts…
Select one or more containers [groups || instances]
Run the menu-item TIG::Reassign
All containers nested in the selected containers are assigned Layer0||Untagged
A closing messagebox shows the number of reassigned nested containers.
This process is one step undo-able.
TIG-Reassign.rb (1.7 KB)
There is of course, a manual way to set anything back to Tag 0:
Choose a group, explode it, everything will be selected from the explode command so you simply select “untagged” in the entity info tray, then right click and re-group. Then assign the group to the appropriate Tag. Takes a couple seconds. For nested groups it takes a little more work, but it is the same process each time.
Wow Tig, thank you so much for this! Very useful!! I will download it now and will message you if I experience any bugs! Cheers!
With many things nested, I think the fastest way to do this in Sketchup is to copy all instances in a model that you want to set to layer 0, take them to a new temporary file and paste them in place, delete all tags in the tags window, everything is set to “untagged” now (layer 0), then copy the objects and paste back into place in existing working file.
Thanks for showing another solution as well Nick, cheers.
Thanks TIG
We Run TIG-Reassign.rb (1.7 KB) to Set all ‘Objects’ to Layer 0, and then Run Default Layer Geometry | SketchUcation. or CleanUp³ (thanks ThomThom) Extension | SketchUp Extension Warehouse to set all geometry to Layer 0. Two Step Process.