[Plugin] Default Layer Geometry

[Plugin] Default Layer Geometry

Postby TIG » Mon Mar 10, 2008 9:14 pm

Get the latest version from the PluginStore

Download


###
1
Last edited by TIG on Fri Jan 08, 2016 8:36 pm, edited 7 times in total.
Reason: Added [Plugin] to Subject.
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Default Layer Geometry

Postby Chris Fullmer » Sat Jan 17, 2009 8:20 pm

I finally have a serious need for this plugin and I am SOOOO thankful to TIG for havingi written it. Took me a few minutes to find it, but that is nothing compared to the time saved :) Thanks TIG!

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Default Layer Geometry

Postby JClements » Sun Jan 18, 2009 6:39 pm

Chris, yes this is a very useful script.

BE AWARE, however, that loose HIDDEN geometry is moved as well.

===========================================================================================================

TIG, I tried making this a context menu (right-click) script but screwed it up somehow.

Can you show how to change it?

My intention is to have it and Chris Grant's PutOnLayer.rb displayed next to each other in my context menu.

Regards, John
0
John
Illustrator
Beaverton, Oregon
User avatar
JClements 
Premium Member
Premium Member
 

Re: [Plugin] Default Layer Geometry

Postby Chris Fullmer » Sun Jan 18, 2009 7:37 pm

Hey John, what is the danger with loose hidden geometry? I tend to want everything on zero always. So whats the danger with the hidden stuff?

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Default Layer Geometry

Postby JClements » Sun Jan 18, 2009 9:38 pm

Hi Chris:

For editing and selection purposes, there may be situations where you put certain "loose" geometry on a specific layer ... including hidden/smoothed edges. The script could then alter the intent of the user's layer scheme.

By the way, as far as I can tell, if you have geometry on a layers whose visibility is turned off, since its geometry can't be selected, the script will have no impact on those layers. On the other hand, you may want to turn on the visibilty of all layers before running the script.
0
John
Illustrator
Beaverton, Oregon
User avatar
JClements 
Premium Member
Premium Member
 

Re: [Plugin] Default Layer Geometry

Postby jgb » Thu Mar 11, 2010 4:16 pm

TIG wrote:This script defaults all 'loose' geometry and any geometry in groups or component definitions to Layer0. The layers of groups or components are NOT changed.

.


Just d/l'd but not tried it yet. I think it will solve a problem I raised long ago to revert all selected group/comp internal geometry to layer0.

I have a question.
Does it revert ALL groups on a visible layer, or only selected groups on a visible layer?

The reason I ask is because there are 2 conditions I employ that uses crossed layers within a group.
1) This is where the object(s) within a layered envelope group is on layer0, and the documentation is also within the envelope group, but is assigned to a separate "documentation" layer. That way I can chose to make visible both the object and its doc by making both the objects and doc layers visible. By turning off the doc layer, ALL such documentation for all groups on all layers is invisible. By turning on the doc layer, only those object layers that are turned on will display their relevant documentation. This dramatically reduces clutter and gives the documentation more utility.

2) In a similar way, in complex models with many layers that contain subsets of a major object, I will place each subset object (on their own layer) into an envelope layer on its own layer.
Imagine an airplane, with fuselage, wings, engines, landing gear, etc. I number my layers hierarchically such as;
1.0 fuselage
2.0 wing
2.1 wing airfoil
2.2 wing flaps
2.3 wing engines
3.0 other stuff
So, Wing grouped objects on layers 2.1, 2.2, 2.3 are contained in an envelope on layer 2.0. The raw geometry is always on layer0. Then I can make visible/invisible the whole wing by turning on/off only layer 2.0. And I can still turn on/off any other part of the wing. It's a bit easier and quicker than using a layer manager.

So if your pluggin reverts all groups/comps raw geometry to layer0, that would screw me up royally.
But if it only reverted selected groups/comps, that would be of great use to me cleaning up old models that had all details on layers eschewing layer0. That happened in my early SU days coming from ACAD.
0
__________________
jgb
User avatar
jgb 
 

Re: [Plugin] Default Layer Geometry

Postby TIG » Thu Mar 11, 2010 5:13 pm

It's a while since I wrote it !

As I recall if finds ALL 'raw' Geometry in the Model, and inside every Group and Component-definition and puts it onto 'Layer0'... but any Groups and Instances are not changed.

:?
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Default Layer Geometry

Postby jgb » Thu Mar 11, 2010 5:33 pm

TIG wrote:It's a while since I wrote it !

As I recall if finds ALL 'raw' Geometry in the Model, and inside every Group and Component-definition and puts it onto 'Layer0'... but any Groups and Instances are not changed.

:?

That may be a problem. I'll try it later.
Thanks....
0
__________________
jgb
User avatar
jgb 
 

Re: [Plugin] Default Layer Geometry

Postby ken28875 » Thu Mar 11, 2010 5:59 pm

Wow, cool. Thanks, TIG.

I was really in need of that plugin.

I sometimes group/ungroup/explode my geometries and some will go into another layer rather than the layer 0. I loss some of the geometries due to being in a hidden layer after deleting a group.

This plugin will be quite useful.

Thanks again for your time and great plugins.

Best,

_KN
0
Follow Your Dreams.
User avatar
ken28875 
 

Re: [Plugin] Default Layer Geometry

Postby unclex » Thu Mar 11, 2010 6:09 pm

哈哈,old one
0

unclex 
 

Re: [Plugin] Default Layer Geometry

Postby Chris Fullmer » Thu Jun 17, 2010 6:11 pm

Thanks again TIG, this is still one of my favorite plugins!

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Default Layer Geometry

Postby Ecuadorian » Thu Aug 26, 2010 8:48 pm

Very useful for cleaning up CAD imports. Thanks! :thumb:
0

Ecuadorian 
 

Re: [Plugin] Default Layer Geometry

Postby JRSly » Mon Feb 20, 2012 10:51 pm

Just had to bump this up and thank you for the great plugin! I'd started a personal project years ago to try to learn SketchUp and was recently running into issues with pieces disappearing in renders unexpectedly. And then I figured out it was cause the raw geometry was on some other layer, that I had hidden, than the group itself. At first I was frustrated and puzzled as to why SketchUp's layers would operate like this, but when I looked into the issue and read some topics on the frame of mind you should have regarding layers and groups and components it all started to make more sense.

But then, sense or no sense, I was horrified at the prospect of trying to correct everything by hand, digging through every group and placing its lines on Layer0. It's just a silly, personal project, but I've put a lot of time into it and want to make it as properly and smartly as I can. So this plugin was an absolute lifesaver, saved me many hours of work and a good chunk of my sanity. :thumb:
0

JRSly 
 

Re: [Plugin] Default Layer Geometry

Postby sorgesu » Fri Feb 24, 2012 1:59 am

This is a fabulous script indeed, but why is it not listed on Didier's Ruby Depot? Default All Layers , IS listed but not this one "Default Layer Geometry".

Is it still working ? I ask because I use it one of my classes and a MAC user could not get it to do anything. It works fine on my PC but not on this fellow's MAC. Is that why it is no longer listed on Didier's site?

Thanks TIG
0
Susan Sorger
Seller Hand Rendered Entourage
Canadian Authorized Training Centre, SketchUp
http://www.entouragearts.com

sorgesu 
 

Re: [Plugin] Default Layer Geometry v1.1 20120224

Postby TIG » Fri Feb 24, 2012 12:22 pm

Here's v1.1 viewtopic.php?p=47033#p47033
I've updated it to increase its speed slightly on large selections and recoded it a bit better - after 4 years of practice... :roll:
It's a simple script that should run on all SUp versions and all OSs...
:ugeek:
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Default Layer Geometry v1.1 20120224

Postby sorgesu » Fri Feb 24, 2012 3:04 pm

Thank you very much TIG. I will send it to my MAC friend.

I really appreciate your response.
0
Susan Sorger
Seller Hand Rendered Entourage
Canadian Authorized Training Centre, SketchUp
http://www.entouragearts.com

sorgesu 
 

Re: [Plugin] Default Layer Geometry v1.1 20120224

Postby sumaster » Fri Feb 24, 2012 7:51 pm

Thank you sir,

its very interesting ......

i have material tool which was apply material inside / out-side face one time .....

and thank for this tool .......

GOOD ONE ..... :)
0
Thank you,
SUmaster
User avatar
sumaster 
 

Re: [Plugin] Default Layer Geometry v1.1 20120224

Postby MartinK » Wed Dec 05, 2012 3:34 pm

Thanks :thumb:

I can use this to fix a colleagues messy model. This will be very handy in the future.
0

MartinK 
 

Re: [Plugin] Default Layer Geometry

Postby TIG » Fri Jan 08, 2016 8:09 pm

Here's v2.0

Download

It's been updated to optimize its processing.
Either on a Selection [including any nested geometry within selected 'containers'] OR the Whole Model [if nothing is preselected].
It's also signed for v2016 compatibility in all Policies.
1
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Default Layer Geometry

Postby faust07 » Fri Jan 08, 2016 8:30 pm

Thanks again and also for your grand work to bring SketchUp to that level!
0

faust07 
 

Re: [Plugin] Default Layer Geometry

Postby pbacot » Fri Jan 08, 2016 9:50 pm

Great! Thanks!
0
MacOSX (El Capitan) ShetchUp Pro v16 Layout Twilight Pro v2 M2 Kerkythea PowerCADD
User avatar
pbacot 
Top SketchUcator
 

Re: [Plugin] Default Layer Geometry

Postby TIG » Sat Jan 09, 2016 11:03 pm

Here's v2.1

Download

It is further optimized by correcting a stupid typo :shock:
0
TIG
User avatar
TIG 
Global Moderator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: almog44, atagharehshir, jackyhu94, jengdiaz, JUNGHEE, oheimala and 11 guests

Visit our sponsors: