View Full Version : Selecting objects from multiple materials
peakyfreak80 03-03-2006, 02:57 PM I swear I've seen this before, but, for the life of me, I can't seem to find it. I'm trying to select objects (lots and lots of them) from 6 materials and apply one material to them all. Without having to drag each material into the ME, selecting that material, and applying the new material, is there an easier way?
There has to be a script out there somewhere, right?
Thanks
Jon
|
|
magicm
03-03-2006, 03:22 PM
Here's a simple script that will do it for you.
fromMatIndex = 1
toMatIndex = 2
with redraw off
(
for obj in objects where obj.material == meditMaterials[fromMatIndex] do obj.material = meditMaterials[toMatIndex]
)
Adjust the fromMatIndex and toMatIndex variables to your needs. This example will change all objects that have the material in slot 1 (in the material editor) to the one in slot 2.
Hope that makes sense :)
To use it, paste the script into a new maxscript window and choose File->Evaluate..
- Martijn
vertigo
11-02-2006, 01:00 PM
Interesting script, magicm!
Is there any possibility only to select the objects, whose materials are in the MEslots?
Thanks
vertigo
Interesting script, magicm!
Is there any possibility only to select the objects, whose materials are in the MEslots?
Thanks
vertigo
In the material editor... buttons down the right side... 8th one down (second from the bottom)... Select by Material. Icon is 4 tiny spheres with a black arrow.
--Racc
vertigo
11-02-2006, 06:15 PM
Interesting script, magicm!
Is there any possibility only to select the objects, whose materials are in the MEslots?
Thanks
vertigo
:scream: :bounce:
materialS
:rolleyes: :shrug:
CGTalk Moderation
11-02-2006, 06:29 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.