Building a simple material switch

Hey guys,

we are trying to build a material-switchnode inside maya, were we have for example 10 slots where we can connect different VRayMtls and then have another integer-field where we can choose which slot gets passed to the shadingEngine.

I saw that somewhere already and i know that it didn’t involve a lot of coding but i don’t really remember how it was done…

Any hints?

thx
Oliver

Risking saying that (as its buggy) Did you try maya native switch node?

Do you mean the triple switch? If yes, then this is not the behaviour we need…

We just need a node where we can cycle through materials based on an interger that defines the materialslot we need. we don’t want to switch materials on different shapes!

This has actually been requested by some users so we’ll see. We already have a V-Ray material for it (MtlMulti), we just need the UI…

Best regards,
Vlado

Have u try this maybe ?

Not sure if it does what you need. Its suggestion from my friend.

thanks, bye.

That’s way too complicated for something so simple :slight_smile:

Best regards,
Vlado