[Plugin] MaterialConsolidator
-
Another awesome and needed tool, any possibility to have it available in the 'tools' drop down menu? as typing into ruby consol everytime will require me to remember the command and I have already forgotten it.
-
Awesome! It's time to clean those Augean stables.
-
Sweet! Thanks, TIG!
@solo said:
Another awesome and needed tool, any possibility to have it available in the 'tools' drop down menu? as typing into ruby consol everytime will require me to remember the command and I have already forgotten it.
+1
-
Here's v1.1 http://forums.sketchucation.com/viewtopic.php?p=295290#p295290
It now has 'Material Consolidator' under the 'Tools' menu... -
Oh, YES!!
Thank you, TIG
-
Hi TIG!
I have some important suggestion. The majority of people working in the 3D field use some prefixes in the mats\layers\camera names. It's extremely helpful to differ my stuff from the others.I for example name all my assets in this way: zzz_blahblah. And everything is inserted in the initial template file.
So what I'm asking for is ability to set the default nameprioty directly in the ruby file
itself (just to set up it once and forget). In my case zzz_* formula would be dominant.
What do you think? -
rv1974
At the moment the first material in the database is used in preference to any other matches [the names are not considered just the position in the list], so if you have 'zzz_Material', 'zzz_Material1' and 'xxx_Material99' that are all exact matching 'clones' and 'zzz_Material' is the first one then everything becomes 'zzz_Material' and the others are purged...
I can't see how we would use 'prefixes' to sort materials [at the moment, as I said, the name is ignored and its 'order of being created' is used] -
Here's v1.2 http://forums.sketchucation.com/viewtopic.php?p=295290#p295290
The listing and sorting algorithms have been optimized for speed and command-line/console progress messages added... -
@tig said:
rv1974
At the moment the first material in the database is used in preference to any other matches [the names are not considered just the position in the list], so if you have 'zzz_Material', 'zzz_Material1' and 'xxx_Material99' that are all exact matching 'clones' and 'zzz_Material' is the first one then everything becomes 'zzz_Material' and the others are purged...
I can't see how we would use 'prefixes' to sort materials [at the moment, as I said, the name is ignored and its 'order of being created' is used]
order of being created is already a nice thing. The workaround is to embed a simple planes matrix with user common used materials applied into initial template.
Thank you. -
-
@rocorona said:
@tig said:
@gaieus said:
@tig said:
These are:-
materialType
color RGB
transparency [alpha]What is a material "type"?
I feel I'm missing something basilar, but I can't find this in the "modify material" window.The
materialType
is accessible via the API - it returns values [0/1/2] depending on if the material is simply a 'plain-color', has a 'texture' or it has a texture and it has been 'colorized'... that's all... http://code.google.com/apis/sketchup/docs/ourdoc/material.html#materialType -
TIG, "thanks" for your reply, and "thanks" for your great and valuable work!
-
I was thinking about this yesterday, as using FormFonts objects bloats my files with duplicate materials.
Thanks, TIG!
-
Here's v1.3 http://forums.sketchucation.com/viewtopic.php?p=295290#p295290
It is now wrapped into its own class 'MaterialConsolidator'. -
GR8 !!!
TY. -
thank you for this useful tool !
but one question:
how do i delete unused materials that result from objects imported by
the warehouse and which i dont use anymore?to be more exactly, i tried out several warehouse objects to fit my needs
and mixed some of them. at the end i got 50+ textures loaded but maybe only
15 are in use. deleting all by hand would take some time.did i get something wrong ?
cheers
-
@staatsfeind said:
thank you for this useful tool !
but one question:
how do i delete unused materials that result from objects imported by
the warehouse and which i dont use anymore?
to be more exactly, i tried out several warehouse objects to fit my needs
and mixed some of them. at the end i got 50+ textures loaded but maybe only
15 are in use. deleting all by hand would take some time.
did i get something wrong ?
cheers
'Used' Materials are not 'purged'...
Erase all unwanted Component Instances OR go to the Component Browser and find the unwanted component, right-click its icon and pick 'Delete' - this removes it from the model/browser/data-base.
OR if there are no Instances left use Component Browser > Purge... pop-out to remove any unused Components
It's recommended that you also use Layer Browser > Purge... pop-out to remove any unused Layers [that might have been associated with Components that you have just purged]
NOW use Material Browser > Purge... pop-out to remove any unused Materials [that might have been associated with Components that you have just purged]OR simply use Model Info > Statistics > Purge Unused... to purge them all in one go - this also includes a purge of unused Styles.
OR try my 'Purge' script which is similar but it lets you choose which kinds of thing to purge, and makes a 'report' of what's gone too...
-
hell you react fast ! ;D
thx for your answer, will give it a try.
-
Great plugin, thanks TIG. Not one I'll likely use very often but I just had need of it and it worked perfectly.
-Brodie
-
Thank you for this plugin... it's quite useful.
Advertisement