• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Substance Designer Convert Material Switch to Integer

Community Beginner ,
Feb 22, 2024 Feb 22, 2024

Copy link to clipboard

Copied

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.

TOPICS
How to , MDL Graph , Scripting , Substance Graph

Views

138

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 22, 2024 Feb 22, 2024

Hey Matthew,

 

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

MarcoVitale_0-1708624949420.png

 

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

MarcoVitale_1-1708624986100.png

 

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

MarcoVitale_2-1708624998178.png

 

This goes into the next Material-Switch Node

MarcoVitale_3-1708625013704.png

 

And so

...

Votes

Translate

Translate
Community Expert ,
Feb 22, 2024 Feb 22, 2024

Copy link to clipboard

Copied

Hey Matthew,

 

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

MarcoVitale_0-1708624949420.png

 

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

MarcoVitale_1-1708624986100.png

 

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

MarcoVitale_2-1708624998178.png

 

This goes into the next Material-Switch Node

MarcoVitale_3-1708625013704.png

 

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

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 22, 2024 Feb 22, 2024

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 22, 2024 Feb 22, 2024

Copy link to clipboard

Copied

LATEST

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

 

All the best Marco

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines