Skip to main content
Known Participant
August 8, 2021
Answered

Is it possible to add a blended color to the input of a uniform color in the Multi Switch Color List

  • August 8, 2021
  • 2 replies
  • 4641 views

Hi,

 

I am in need of adding a few manufacture's blended colors to the multi-switch-color filter and cannot find a way to do this?

Please see attached and note most of the colors in this manufacture's line is singular rgb with the excepiton of a few.

I am unable to find a node or someway to add a blended color to the uniform node with new inputs, or any other node that follows the same ouputcolor list?

Please advise if there is a way to somehow add a combined color mix in the multi switch color filter?

 

Thanks!

 

 

This topic has been closed for replies.
Correct answer davescm

Hi Dave,

 

I have 1 graph with about 50 colors 3 of them are blended colors and when I use any node be it blend or whatever I cannot get the output list to go into the same numbered uniform color list I have with names.  Please see attached, and note I plan to bring these colors into a multi-material where I can flip through the colors and if a blended color cannot be put in the list because of the output is opacity or anything but the same parameters as the uniform colors I do not see how I can add those to the list of output colors and hence be able to flip through color names when I bring into a multi material graph?

 

Please advise,

Thanks!


The list of names in the multi switch input dropdown that you have shown can be overtyped with whatever name you choose. So where you have used blended colours, note the input slot that you plugged them into and find that integer in the list and give it whatever name matches your customers name for that colour.

 

See if this helps :

The multi switch colour node has a number of inputs and the control for selecting that input can be exposed as an input for the graph. If it is it will look like this (in my example I've just used four inputs but works the same for 44) :

Click where I've circled in red and you will see what function is being used to select that input.

In my example it is a value called input_number :

 

In my main graph I have an exposed input parameter called input Colour Name that sets the value of input_number, based on a dropdown list of values. So if I select "Name of first colour" from teh dropdown list I will select whatever is plugged into input 1. If I select "Name of Second Colour" I will get whatever is plugged into input 2.  The name in the drop-down list though can be overtyped to be anything I want e.g. Red, Green, Sky Blue, Fred or Sally.

So naming your colours should just be a case of overtyping the name in that list for the appropriate multiswitch input

 

Dave

 

 

 

 

 

2 replies

berylskyAuthor
Known Participant
August 8, 2021

Hi Dave,

 

The issue is I need this blended texture as I have shown in picture to be added to the list in the same manner as the others.

ie..., I have manufacture's colors and (3) of them are blended and now when I try to add the blended colors to the multi switch color list filter they do not go into the drop down list as the others.  Therefore, I am trying to sequence these colors in a logical sequence in the multi-switch color filter.  The only node that goes into the list with the numbered color drop down list are the uniform color nodes.  I plan to bring these colors to combine to other material and need the list to be in order and I cannot do that with the other nodes since they do not follow the outputcolor list in the multi switch colors?  I need to somehow get the blended uniform colors with the mask into a singular uniform color or some other node that follows the list of colors in order. 

 

Please see attached and let me know again if there is a way to get the blended colors in this manufacture's line to go into the drop down list as the others do?

 

Thanks!

davescm
Community Expert
Community Expert
August 8, 2021

I'm sorry but without seeing more of your graph I am not following what you are trying to do. 

You have shown a list of input parameters to your Substance graph named Color01_outputcolor,  ....etc

Presumably those are driving the colours within the Uniform color nodes in your graph.

 

The multi-switch colour node though is driven by an input selection that is independent of whatever you have named those graph parameter inputs being used to set the colours in the uniform color nodes (unless of course you have added a function to the input selection which I cannot see and therefore it is using those parameter input names in another way).

 

You can manually create additional graph inputs to the Substance graph, named in the same convention which would complete your input list,  but without seeing more of the graph I am really puzzled as to the connection between those input parameter names and your use of the MultiSwitchColor node and therefore what will give you your required outcome.

 

Dave

berylskyAuthor
Known Participant
August 11, 2021

Hi Dave,

 

I have 1 graph with about 50 colors 3 of them are blended colors and when I use any node be it blend or whatever I cannot get the output list to go into the same numbered uniform color list I have with names.  Please see attached, and note I plan to bring these colors into a multi-material where I can flip through the colors and if a blended color cannot be put in the list because of the output is opacity or anything but the same parameters as the uniform colors I do not see how I can add those to the list of output colors and hence be able to flip through color names when I bring into a multi material graph?

 

Please advise,

Thanks!

davescm
Community Expert
Community Expert
August 8, 2021

Hi

a. If you want the output to be a uniform colour then feed the multiswitch colour node a uniform colour node (example 1 below)

b. If you want the output to be a patterned map then feed it the blended map (example 2 below)

c. If you want the output to be a uniform colour taken from the mean of the blended map then add a Transform 2D  node and set the MipMap Mode, of that transform 2D node, to manual and the mipmap level to match the previous nodes level, in my case 10 for 2048 x 2048 (Example 3 below)

 

 

I hope that helps

 

Dave