Script To Swap Material ID
Hi,
I need help from the codemasters over here. Basically this is what i wanted o do:
1. select all object in scene (all object has a multi/sub mat)
2. swap material id [1] with [5]
3. collapse multi/sub material to standard material
i've tried to search more info on this online but just couldn't figure ou where to start.
Hope there's any good guy greg around here willing to help me. Please!
Comments
Just to know if it possible
Hi Barigazy,
First of all, thanks you so much for your reply. The 3rd option is actually not a urgent requirement at this moment, just for the sake of learning whether if it is possible.
If it really is possible, then could you kindly write down the syntax so that i can google the syntax and try to make sense of it?
Again, thank you so much.
#3
Let's continue
bga
let's start
1.select all object in scene (all object has a multi/sub mat)
You need to consider this:
if you want to swap 1st ID with 5th then you scene object must have minimum five mtlID.
To select all objects that should satisfy the following conditions:
2. swap material id [1] with [5]
-- now you can do:
And why do you need 3rd options. Why you want to collapse multisub material?
bga