Skip to main content
Participant
February 22, 2024
Answered

Substance Designer Convert Material Switch to Integer

  • February 22, 2024
  • 1 reply
  • 406 views

Hello Peerps, i am new to the world of functions in Substance Designer. Currently i have 5 materials i want to switch between, I noticed the material switch node but there does not seem to be a multi material switch node.

 

Is it possible to change the switch/boolean in the material switch node to an integer? If so any support or information would be appreciated.

 

Pretty much trying to set the material switch up like the Grayscale Multi switch with a get number and get selection integer.

 

Thanks again and i hope you peeps have a great day.

This topic has been closed for replies.
Correct answer Marco Vitale

Hey Matthew,

 

you can easily chain multiple Material-Switches together, depending on the amount of your input Materials.

 

Then you create one parameter for the parent graph. I called it int_selector, which lets you choose the material you want to output.

 

Inside the swith parameter of each Material-Switch you make a comparison, if it's greater than the last material index (I hope this is understandable)

This goes into the first Material-Switch Node

 

This goes into the next Material-Switch Node

 

And so on..

 

There are way better and faster ways to do this, but for the sake of simplicity this would be my suggestion.

All the best Marco

 

 

1 reply

Marco VitaleCommunity ExpertCorrect answer
Community Expert
February 22, 2024

Hey Matthew,

 

you can easily chain multiple Material-Switches together, depending on the amount of your input Materials.

 

Then you create one parameter for the parent graph. I called it int_selector, which lets you choose the material you want to output.

 

Inside the swith parameter of each Material-Switch you make a comparison, if it's greater than the last material index (I hope this is understandable)

This goes into the first Material-Switch Node

 

This goes into the next Material-Switch Node

 

And so on..

 

There are way better and faster ways to do this, but for the sake of simplicity this would be my suggestion.

All the best Marco

 

 

Participant
February 22, 2024

Thank you so much for the info, the photos are also a big help much appreciated!

Community Expert
February 22, 2024

I'm glad I could help. If you have more questions, don't hesitate to contact me.

 

All the best Marco