Plugin to move everything inside a group to specific layer?

Plugin to move everything inside a group to specific layer?

Postby AcesHigh » Sat Oct 24, 2009 3:53 pm

This usually happens to me... and I NEVER KNOW how to deal with it. If there is someway to deal with it with native Sketchup, please, point me in the right direction... else, a plugin would be great.

I have this layer called Tower, which has some complex geometry which I want to hide to make it easier to model the rest of the scene.

But I was not careful, and I have drawn lots of things WHILE the Tower layer was active.

Basically, I have this HUGE GROUP, which inside has LOTS of subgroups, many of those subgroups with sobgroups themselves (and so on), and geometry in many different layers.

Now I cant hide the Tower layer, because a lot of stuff inside this group I want to edit disappears.

I can select the group and change its layer. I can even open the group, select the subgroups and change the layer. But lots of geometry and subgroups inside the subgroups are still in the Tower Layer (as well as apparently a few other layers).

So, is there any way for me to change EVERYTHING INSIDE THIS GROUP to ANOTHER LAYER (not the Tower layer)??? Can that be done by the outliner, in an automatic way?? Is there a plugin that can do it?

Thanks
0

AcesHigh 
 

Re: Plugin to move everything inside a group to specific layer?

Postby JClements » Sat Oct 24, 2009 4:10 pm

There already is a script to move a selection things from one layer to another, including all sublevels within a group. It was by Chris Grant and I believe it is called PutOnLayer.rb.

I couldn't find the original link but here is one in which the script has been modified a bit:
viewtopic.php?f=180&t=12494&hilit=+Plugin+PutonLayer
1
John | Illustrator | Beaverton, Oregon
User avatar
JClements 
Premium Member
Premium Member
 

Re: Plugin to move everything inside a group to specific layer?

Postby AcesHigh » Sat Oct 24, 2009 6:02 pm

thank you very much!
0

AcesHigh 
 

Re: Plugin to move everything inside a group to specific layer?

Postby xrok1 » Sat Oct 24, 2009 7:21 pm

you could select everything you want to move then in the entity info window from the layer drop down list choose the layer you want it to be on. :D
-1
“There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

http://www.Twilightrender.com try it!

xrok1 
 

Re: Plugin to move everything inside a group to specific layer?

Postby AcesHigh » Sun Oct 25, 2009 9:31 pm

xrok1 wrote:you could select everything you want to move then in the entity info window from the layer drop down list choose the layer you want it to be on. :D


that wont change the layers of the subgroups inside the selection. It will only change the layers of the groups/components/geometry directly selected. The subgroups or components INSIDE the groups/components selected will remain in other layers.
0

AcesHigh 
 

Re: Plugin to move everything inside a group to specific layer?

Postby RunnerPack » Mon Oct 26, 2009 2:23 am

To avoid this problem in the future, I suggest turning on the "Layers" tool-bar (if you haven't) and getting in the habit of checking it before you start creating or grouping any geometry/components.

I also add mine to the recommendations of Chris' PutOnLayer, and I also recommend Todd Burch's layerchange.rb.
0
You might have noticed... I'm a bit of a ferpectionist.
User avatar
RunnerPack 
 

Re: Plugin to move everything inside a group to specific layer?

Postby JClements » Mon Oct 26, 2009 8:58 pm

The thing is, when cutting pasting from different models or importing models made by different people with different modeling expertise, then the whole layer thing can get messy. That is where the plugin listed above can be a big help.
0
John | Illustrator | Beaverton, Oregon
User avatar
JClements 
Premium Member
Premium Member
 

Re: Plugin to move everything inside a group to specific layer?

Postby AcesHigh » Tue Oct 27, 2009 3:29 am

people like me dont need to import models for the layers to get all messy. I always leave the layers window open, and even so, I will forget to change the active layer when modelling, and screw everything up.
0

AcesHigh 
 

Re: Plugin to move everything inside a group to specific layer?

Postby Chris Fullmer » Tue Oct 27, 2009 4:50 am

Try NOT leaving the layers panel open. Turn on the Layers toolbar instead. And then ALWAYS stay on layer 0. And model things on zero, then turn everything into groups and components. And then move those onto the desired layer through the layer toolbar. That way you never change from layer 0. But you can move components and groups easily onto the correct layer.

I like to do it that way,

Chris

Oh, and its still possible to get raw geometry to change layers accidentally. So then I use TIG's move all geometry to layer 0 plugin. It moves all loose geometry to layer 0, while leaving all components and groups on the layer they are on.
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Developers' Forum

Who is online

Users browsing this forum: No registered users and 5 guests

Visit our sponsors: