[Plugin] Material Replacer

[Plugin] Material Replacer

Postby thomthom » Thu Feb 11, 2010 11:00 pm

Tools -> Material Replacer

Tool that let you replace materials by picking from the model.


1. Pick the material to replace
mar_rep_1.png


2. Pick the material to replace with
mar_rep_2.png


Result: the first material is replaced with the second material in the entire model
mar_rep_3.png


Download

16
Last edited by thomthom on Sat Jan 18, 2014 1:17 pm, edited 1 time in total.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby thomthom » Fri Feb 12, 2010 10:46 am

Should now be picking the material from the side of the face visible to the user.
1
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby pichuneke » Fri Feb 12, 2010 1:18 pm

Thanks, I will test the plugin this weekend, it seems very interesting.

Your cookie:

COOKIE.jpg
1
Forgive my spanglish...

pichuneke 
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby thomthom » Fri Feb 12, 2010 1:31 pm

what a delightful virtual cookie.

Now... if I can only fit my monitor inside my mouth?
4
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby pichuneke » Fri Feb 12, 2010 1:37 pm

In fact I was eating cookies while I was reading you, I have been working with my scanner all the week making pdfs for my work, and I couldn't resist the temptation to scan one cookie for you! :D
3
Forgive my spanglish...

pichuneke 
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby EarthMover » Sun Feb 14, 2010 3:36 pm

Thanks TT! Trying to limit the number of new plugins I download, but this one looks useful!! Keep up all you great scripting efforts....it's definitely appreciated!
0
3D Artist at Clearstory 3D Imaging
Guide Tool at Winning With Sketchup
Content Creator at Skapeup
User avatar
EarthMover 
Premium Member
Premium Member
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby agrazdi » Mon Feb 15, 2010 12:17 am

Any plans to get an icon for this great plugin ?

Thanks

agrazdi
0

agrazdi 
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby simon le bon » Mon Feb 15, 2010 12:58 am



and this is mine dear thomthom :thumb: :thumb:

simon
2
User avatar
simon le bon 
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby nomeradona » Tue Feb 16, 2010 6:23 am

definitely a time saver. thanks thom2
0

nomeradona 
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby pilou » Tue Feb 16, 2010 11:31 am

Don't yet tested but if I understand you are not obliged to pass with the bucket tool for have the eye dropper?
here my Proust's madeleine ;)
0
Is beautiful that please without concept!
My Little site :)
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby bagatelo » Tue Jun 01, 2010 8:21 pm

I thought about an additional function in this plugin that may be useful for a lot of people.
The plugin would create several squares (or plans, or boxes) in the scene, in a separate place, maybe in separate tab.
The of number of the squares (or plans, or boxes) it would be the same as the number of the materials in the scene.
In each one of them it would be applied a material. The objective of this function would be the one of to join identical materials or to join similar materials in the scene, reducing the number of materials in the scene. That would aid a lot in the moment of preparing the materials for rendering.
Another interesting function would be to erase all of the squares and to recreate all from materials purged.
That would be very special for me. Please, think with love about this possibility.
0
While the cat's away, the mice will play
User avatar
bagatelo 
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby bagatelo » Tue Jun 01, 2010 8:25 pm

Another interesting thing would be if it was possible to change materials just in the selected objects.
1
While the cat's away, the mice will play
User avatar
bagatelo 
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby rv1974 » Thu Jun 17, 2010 10:30 am

Thomtom huge thank you!
2 things that would make this script a dream come true:
1. To be able to make the 'first eyedropper click' a multiple one (with control key)- to select a set of materials to be replaced.
2. To insert material editor into the picture. I mean ability to select materials (to be replaced\replacement candidate) both in model and mateditor.
Almost forgot: :)
0
Last edited by rv1974 on Thu Jun 17, 2010 10:34 am, edited 2 times in total.

rv1974 
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby thomthom » Thu Jun 17, 2010 10:32 am

Excellent ideas! :idea: :thumb:
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 


Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby Bob James » Thu Jul 15, 2010 1:49 am

I have a real need for something very similar to bagatelo's request.

I have a need that doesn't seem to fit "Select by Material" or "Material Replacer" or "Repaint" or "GlobalMaterialChange".

In the development of my major models I was not very consistent with color application. As I've learned more and have gotten much more involved with rendering (TwiLight originally and now Thea) the actual colors are very important.

What I would like to be able to do is select a material/color that is in the model from the materials dialog (or something like bagatelo's idea) and then be able to select all objects that have that color/material. Then I need to be able to isolate them so I can see what's been selected, and, finally, with all of these selected, I can change their color. But I need to know which objects, groups, components are that color so I don't accidentally change one that I don't want changed.

Does anyone have an idea of how to do this or even if it could be done?
0
i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60
User avatar
Bob James 
Premium Member
Premium Member
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby thomthom » Thu Jul 15, 2010 9:12 am

One can select all entities that has material with the same colour.
However, this isolation - not quite sure what you mean there. You mean hide all other faces/edges?
Can't think of nay other way to isolate. You do have the Hide Rest of Model feature in SU, but then everything would need to be inside a group/component - and the API doesn't let us upen up groups etc...
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby Bob James » Thu Jul 15, 2010 4:59 pm

thomthom wrote:One can select all entities that has material with the same colour.


That's what I don't know how to do: If I could select all the entities with the same color and then isolate only those entities I could see which ones had the "wrong" color so I could change it.

Very belated update:


Karen Walkerman has done just what I requested above.
http://forums.sketchucation.com/viewtopic.php?t=31378
Thanks again Karen :thumb:
0
Last edited by Bob James on Sat Oct 30, 2010 10:01 pm, edited 2 times in total.
i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60
User avatar
Bob James 
Premium Member
Premium Member
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby Dragoonprogramming » Fri Aug 20, 2010 6:55 pm

someone buy thomthom a cookie at base camp and take a picture of it :D
0
"...And if he says that one more time i'll punch him right in the throat" - Armstrong and Getty
My website http://dragoonprogramming.weebly.com/

Dragoonprogramming 
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby thomthom » Tue Aug 24, 2010 12:23 am

I'm not going to Basecamp... :(
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby Bob James » Fri Aug 27, 2010 10:53 pm

thomthom wrote:I'm not going to Basecamp... :(

Bummer :cry:
0
i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60
User avatar
Bob James 
Premium Member
Premium Member
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby dedmin » Tue Nov 30, 2010 9:45 pm

Is it possible to change just the material of the picked face?
0

dedmin 
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby TIG » Tue Nov 30, 2010 9:50 pm

dedmin wrote:Is it possible to change just the material of the picked face?

Can't you just paint it ??
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby dedmin » Tue Nov 30, 2010 10:04 pm

The beauty of this tool - You don't have to open a component to change the material of the faces.
But it changes all the material in the whole model - not just the face You click on.
0

dedmin 
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby TIG » Wed Dec 01, 2010 10:35 am

dedmin wrote:The beauty of this tool - You don't have to open a component to change the material of the faces.
But it changes all the material in the whole model - not just the face You click on.

BUT your question was to change the material of the picked face !
You mean to change the material of the picked face INSIDE THE GROUP/INSTANCE !
It could be done... but I must leave it to others......
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby dedmin » Wed Dec 01, 2010 11:56 am

Yes, inside the group or component. And only of that picked fase.
0

dedmin 
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby lcbrewer » Thu Dec 02, 2010 7:14 am

How do you install this plugin
0

lcbrewer 
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby thomthom » Thu Dec 02, 2010 7:56 am

Open the zip file and drop the .rb file and the folder with it into the Plugins folder where SketchUp is installed.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby bagatelo » Tue Jan 25, 2011 10:13 pm

It would be possible to create a function swap some materials? Something like this:
Imagine a blue box and a red ball. We play the plugin, we click on the box and after the ball, and the colors are reversed. It would be interesting too, if it were possible to exchange materials not in the whole scene, but only on selected objects. Thanks for this fantastic tool.
0
While the cat's away, the mice will play
User avatar
bagatelo 
 

Re: [Plugin] Material Replacer (1.1.0) — 12 January 2010

Postby cobb89 » Sat Mar 12, 2011 3:00 am

Is there any way we can use this plugin to replace a specific material [.skm]..that has been used in the model with vray materials [i.e. .vismats]...??
0

cobb89 
Banned
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: No registered users and 10 guests