SketchUcation Plugin Store

 

 

[Plugin] GlobalMaterialChange v1.4 20110525

[Plugin] GlobalMaterialChange v1.4 20110525

Postby TIG » Sun Oct 05, 2008 8:51 pm

This script globally changes materials in model or a selection.
Global_Material_Change.rb
Please, register (free) to access all the attachments on the forums.
Last edited by TIG on Mon Oct 06, 2008 6:52 pm, edited 2 times in total.
TIG
User avatar
TIG
Global Moderator
 
Posts: 14001
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] GlobalMaterialChange v1.3

Postby Free Agent » Sun Oct 05, 2008 9:37 pm

hi TIG very handy ruby thank you, in testing i noticed it wont change a material that has been applied to a back face to another material, however changing "ALL" materials does.
User avatar
Free Agent
 
Posts: 273
Joined: Thu Jun 05, 2008 10:00 am
Location: Cape Town, South Africa
Name: Sean

Re: [Plugin] GlobalMaterialChange v1.3

Postby TIG » Mon Oct 06, 2008 2:50 pm

Free Agent wrote:hi TIG very handy ruby thank you, in testing i noticed it wont change a material that has been applied to a back face to another material, however changing "ALL" materials does.

There are so many permutations - I missed one. I fixed it... See the original post at the start to get the updated version...
TIG
User avatar
TIG
Global Moderator
 
Posts: 14001
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] GlobalMaterialChange v1.3

Postby Free Agent » Mon Oct 06, 2008 7:19 pm

hey TIG me again i can see myself using this tool ALOT i like that u can change the front and backs and what not of materials from the outside of groups however it seems its too strong on the "global" side as i select one group and all groups change. the selection part of the script only seems to work on open geometry.
User avatar
Free Agent
 
Posts: 273
Joined: Thu Jun 05, 2008 10:00 am
Location: Cape Town, South Africa
Name: Sean

Re: [Plugin] GlobalMaterialChange v1.3

Postby TIG » Mon Oct 06, 2008 8:23 pm

Free Agent wrote:hey TIG me again i can see myself using this tool ALOT i like that u can change the front and backs and what not of materials from the outside of groups however it seems its too strong on the "global" side as i select one group and all groups change. the selection part of the script only seems to work on open geometry.

Are you sure you mean 'Groups'. It will change all selected (similar) Components as it applies to the definition rather than the instance. It should only change selected Groups as they are all 'unique'...


.
TIG
User avatar
TIG
Global Moderator
 
Posts: 14001
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] GlobalMaterialChange v1.3

Postby caddict » Thu Apr 09, 2009 2:12 am

very useful plugin, tig, many thanks man!!
caddict
 
Posts: 136
Joined: Mon Nov 19, 2007 1:21 am
Location: new zealand
Name: steve

Re: [Plugin] GlobalMaterialChange v1.3

Postby kevsterman » Tue Apr 14, 2009 2:58 pm

This ruby is exactly what I was after.

Many thanks Tig :thumb:
"Avoid keeping more than 3 items on your desk that you can't fit into your mouth."
kevsterman
 
Posts: 119
Joined: Tue Apr 22, 2008 8:22 am
Location: Ipswich, UK
Name: Kevin Cook

Re: [Plugin] GlobalMaterialChange v1.3

Postby J40 » Mon Sep 28, 2009 5:53 pm

Thanks TIG. Very handy plugin.
J40
 
Posts: 55
Joined: Tue May 26, 2009 7:58 am
Location: Italy

Re: [Plugin] GlobalMaterialChange v1.3

Postby numerobis » Sun Oct 04, 2009 3:24 pm

Very useful tool!!! thank You! 8-)
numerobis
 
Posts: 265
Joined: Sat Apr 12, 2008 1:27 pm
Location: Germany
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] GlobalMaterialChange v1.3

Postby JClements » Sun Oct 04, 2009 3:49 pm

Excellent!

Something like this has been on my wishlist for quite a while. I have tons of nested groups in my models and I initially color code geometry by their structure or mechanical function as I develop a model. The colors are bright and contrasting to make identification and discussion of the model with colleagues or clients (especially those in remote locations) easier; however, for final rendering the colors are usually changed; that is drudgery.

This script will allow me to use colors in a manor more like styles. If I prefix a functional discription to the color name at the start of making a model, then that will make the script even easier to use.
John
Illustrator
Beaverton, Oregon
User avatar
JClements
Premium Member
Premium Member
 
Posts: 773
Joined: Wed Nov 14, 2007 4:32 pm
Location: Portland/Beaverton, Oregon
Name: JClements
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: illustration, cartoons
Level of SketchUp: Intermediate

Re: [Plugin] GlobalMaterialChange v1.3

Postby AcesHigh » Thu Dec 10, 2009 2:15 pm

TIG, very nice plugin... I was just needing it.

Some suggestions... I have a LOT of materials. When the list of materials appear (when selecting one with your plugin) the list doesnt fit on the screen... and there is no option to scroll up or down... nor to see the materials.

I wonder if you could make it just like the materials screen... where you can SEE the materials, and also scroll up and down the list.

If thats not possible, would it be possible to be able to use the eyedropper tool while in your plugin? So I can just select the materials (the one replaced and the one that will replace) instead of having to remember the name of each material.

thanks
AcesHigh
 
Posts: 428
Joined: Wed Mar 05, 2008 1:58 pm

Re: [Plugin] GlobalMaterialChange v1.3

Postby TIG » Thu Dec 10, 2009 3:51 pm

This tools uses the standard input-box. It would need to be rewritten with a web-dialog - which is at the end of a v_e_r_y long list... as is any 'eye-dropper' solution...
Foe any standard input-box, to get at things not shown on screen, type the first letter of the material, e.g. w and the list will jump to the first item starting with w, e.g. 'Wheat', then use the up/down arrows to move to the required material e.g. 'WhiteStuff'... best fix currently available, sorry - but it is 'free'...
:geek:
TIG
User avatar
TIG
Global Moderator
 
Posts: 14001
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] GlobalMaterialChange v1.3

Postby ledisnomad » Tue Jun 01, 2010 8:39 pm

I know this is an old thread, but I wanted to bring it back... I work on a team and our models get messy. We work on individual pieces, then reload the component in a base model. Even if materials are named the same thing, we get duplicates. After awhile, nobody knows what is what.

The GlobalMaterialChange script works well to a certain point, but with our heavy model, doing a single swap can take 5 minutes. With over 70 materials, that's half a day's work. Anybody have a way to do this in batches? We could just delete all the materials and start again, but that's not a viable, reusable solution.

Any thoughts?
ledisnomad
 
Posts: 157
Joined: Wed Jun 04, 2008 5:42 pm
Location: Boston

Re: [Plugin] GlobalMaterialChange v1.3

Postby bagatelo » Tue Jun 01, 2010 10:27 pm

ledisnomad wrote:I know this is an old thread, but I wanted to bring it back... I work on a team and our models get messy. We work on individual pieces, then reload the component in a base model. Even if materials are named the same thing, we get duplicates. After awhile, nobody knows what is what.

The GlobalMaterialChange script works well to a certain point, but with our heavy model, doing a single swap can take 5 minutes. With over 70 materials, that's half a day's work. Anybody have a way to do this in batches? We could just delete all the materials and start again, but that's not a viable, reusable solution.

Any thoughts?



I think this is very useful:
viewtopic.php?f=323&t=26013
If someone can consider my suggestion in last thread can be very better.
User avatar
bagatelo
 
Posts: 243
Joined: Wed Apr 16, 2008 4:55 pm
Location: São José, Santa Catarina, Brasil
Name: Alex Henrique
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: interior design
Level of SketchUp: Intermediate

Re: [Plugin] GlobalMaterialChange v1.3

Postby dlong » Wed Feb 09, 2011 9:56 pm

I can't tell who impresses me more: Google for letting the free Sketchup use these Ruby scripts, or TIG for coming up with EXACTLY what I needed for today. Thank you a million for a script that works exactly as advertised.

I'm on a Mac and running the just-released 8.0.4810 and this script made it a snap to swap out a material. Thanks again.
dlong
 
Posts: 1
Joined: Wed Feb 09, 2011 9:23 pm

Re: [Plugin] GlobalMaterialChange v1.3

Postby jster » Wed Apr 06, 2011 5:03 pm

Thanks for the very useful tool!!
jster
 
Posts: 3
Joined: Sat Mar 26, 2011 3:02 am
Name: jay banchero

Re: [Plugin] GlobalMaterialChange v1.4 20110525

Postby TIG » Fri May 27, 2011 5:12 pm

Here's an update viewtopic.php?p=96863#p96863
If you run it without anything selected it will now change the materials of everything in the model, including inside ALL groups or definitions - even if they are unused [i.e no instances placed]...
TIG
User avatar
TIG
Global Moderator
 
Posts: 14001
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] GlobalMaterialChange v1.4 20110525

Postby irwanwr » Wed Nov 30, 2011 9:33 pm

i just downloaded this plugin. i hope i know how to use it.
thank you very much for this one. i've been looking for something like this quite a while.
it might help me reduce file size significantly to save. :thumb:
User avatar
irwanwr
 
Posts: 571
Joined: Fri May 21, 2010 2:21 am
Location: Medan, Indonesia.
Name: irwanwr
Operating system: Windows
SketchUp version: 8
License type: Free/Make
SketchUp use: hobby
Level of SketchUp: Beginner

Re: [Plugin] GlobalMaterialChange v1.4 20110525

Postby TIG » Thu Dec 01, 2011 12:17 am

Also look for MaterialConsolidator and similar tools... ;)
TIG
User avatar
TIG
Global Moderator
 
Posts: 14001
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 2013
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] GlobalMaterialChange v1.4 20110525

Postby irwanwr » Thu Dec 01, 2011 8:18 pm

TIG wrote:Also look for MaterialConsolidator and similar tools... ;)

yes, of course. certainly. thank you :)
User avatar
irwanwr
 
Posts: 571
Joined: Fri May 21, 2010 2:21 am
Location: Medan, Indonesia.
Name: irwanwr
Operating system: Windows
SketchUp version: 8
License type: Free/Make
SketchUp use: hobby
Level of SketchUp: Beginner

Re: [Plugin] GlobalMaterialChange v1.4 20110525

Postby Dimethil » Fri Jun 08, 2012 4:47 pm

I love this plugin, thanks.
(it saved my life ^^)
Dimethil
 
Posts: 7
Joined: Tue Feb 07, 2012 11:38 am
Location: France

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Need SketchUp Books, Models, Styles or Textures? Check out our One Stop Shop for SketchUp.

Premium Members get 20% discount!

Ad Machine
Robot
 
Posts: 2012


Return to Plugins

Who is online

Users browsing this forum: Atex, gerciowski, pmchads, zerobmeister and 6 guests