Material ID channel

Hi all
Is there any script which knows to put a material ID channel to selected materials? Or even more, put material ID channels in to MultiSub object material?

I am asking that, because Max knows to add just 15 different numbers as a material ID channels. But this is so low! We need more :)
Thank You very much!

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
stenionet's picture
Anubis's picture

Not sure what you're after but...

MultiMats ID's (MMID for short) and EffectsChannel ID's (ECID for short) are 2 different things. MMID's control assigning different mat's on sub-object level of your geometry, while ECID's are for renderable effects and they are limited to 16 (from 0 to 15).

my recent MAXScripts RSS (archive here)

tomastnt's picture

I mean...I would like to put

I mean...I would like to put to every ID number in MultiSub object material different material ID channel. So...usually we are using one massive material in a scene with for example 60 ID's. And we would like to use material ID channel as a mask for every of materials. But if i have 60 sub materials in a mutli submaterial and If I can use just 15 material ID's...I never can create Material ID channel where will be all of those materials.
and that is bad.

br0t's picture

The material ID for a

The material ID for a material inside the material editor is limited to a maximum of 15, as you said. It can be assigned to the currently selected material in the material editor like this:

meditMaterials[activeMeditSlot].effectsChannel = 13

If you need to assign higher numbers, you will have to use a multi/sub material, which supports up to 1000 submaterials. What exactly do you mean with "Or even more, put material ID channels in to MultiSub object material? " ?
Cheers

Never get low & slow & out of ideas

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.