[REQ] Select ALL by material
-
I'm almost positive I've seen this script before but I cant find it anywhere. I'm looking for a script that will allow me to select all faces with a material on it, even if it contained inside a group or component. This will help me, for example, to change the reflectivity for my glass texture in Podium.
-
There is a menu item in the Context menu > Select > "Select with same material" but it only selects faces within the same editing con\text (i.e. not in groups if you are not in them). There is a plugin - GroupByTexture - however that (first explodes then) groups everything by material. It can particularly be useful in such a case (or for exporting into some 3rd party apps) although obviously not exactly that you are after.
-
This script [ http://www.sketchucation.com/forums/scf/viewtopic.php?p=63629#p63629 : Global_Material_Change.rb ] probably does what you want... BUT there are several built in ways to do this too - like renaming and changing a material's setting so everything using that is changed to match another material in the model.
My script works on a selection [or if there is no selection it uses all active entities]...
You can choose any material that's loaded in the model and also choose <Default>, or << ALL >> which will change all materials in the selection to the new one - that's useful if you want to remove all materials from something and go to say the <Default> material...
-
Try quick_selection.rb - really good.
Available on Didier's website:
http://www.crai.archi.fr/RubyLibraryDepot/Ruby/RUBY_Library_Depot.htm
...........
Hope this helps
Howard L' -
I looked at your script Tig, not sure it will do what I need. Yours selects and replaces texture to another texture. I need the faces selected so I can globally change a property on all the faces with a certain texture on it. SU Podium's reflectivity to be exact. Its a property on the face, not the texture.
-
I don't think you have faces inside different component levels selected simulatenously though. So it won't work globally. You could make a script that would take a single face and show its podium properties, then let you adjust those and apply them globally.
That would probably best be built into the podium script though. But it wouldn't have to be I don't think,
Chris
-
@rspierenburg said:
I looked at your script Tig, not sure it will do what I need. Yours selects and replaces texture to another texture. I need the faces selected so I can globally change a property on all the faces with a certain texture on it. SU Podium's reflectivity to be exact. Its a property on the face, not the texture.
OK here's one that does what you want 'Select All Faces by Material'...
Usage:
- Select faces / entities.
[IF NO selection ALL active entities are used]
2. Activate the script from the Plugins Menu.
3. Choose Material.
<< DEFAULT >> = ALL Faces that have NO Materials
and then an Alphabetical list of other Materials in the Model.
4. Choose the desired Material.
To access Materials that are off the visible list type
the first letter - e.g. 'W' and use up/down arrow-keys
to move to the one you want e.g. 'W'hite...
5. All Faces are selected.
Note: to also include groups and instances etc put # in front of
'and e.typename=="Face"' on line #59...
Faces with Materials within groups/instances ARE selected BUT 'default-material' ones painted en mass aren't...
Feedback please...
- Select faces / entities.
Advertisement