I’m trying color the elements based on their cost value. So basically a group of items will have the same unit costs. So my question is if the costs are for example $1000 and $1200 for two groups respectively. When I normalize them 0.833 and 1. Imagine this for multiple groups with a fine variation in costs. How would I spread them in the color range so that the colors are explicit and distinct… Please take a look at the picture below. In the color range when its .833 and .85 the colors will be almost blue for both. How do i solve that situation?? Please also see the color range i’m using its the default one.
@Rooney_Wayne@BenjaminDoty - The Color Range node is one of the trickier nodes to work with. I definitely think we should revisit this UI so that we can make it easier to use. In any case, just wanted to add a few things, in case it would be helpful to you.
You can add more than one color to the Color Range node as @BenjaminDoty correctly shows in his image and shown here…
You can control the gradient using the index input. For instance, if you have 3 colors, create a list of 3 input values ranging from 0 to 1.0. By controlling the values you can determine how your gradient looks. See the attached gif.
Firstly, thank you for providing such a thorough explanation.
I followed your instructions and everything worked, however all of my elements are showing red, so I’m not sure what’s wrong with my nodes. Please kindly could you check ?
remove the dictionary and second override color in view node. The dictionary is of no use here and in a function state so override color in view is trying to override the color of a function which is like me asking you to divide 3 by - it makes no sense.
Instead pass groups to the element input of the first override color in view node where you currently have the elements from the all elements of category node.