2
$\begingroup$

A group of multiple ColorRamps mixed as follow:

enter image description here

I want to achieve the following:

  • By change the value to 1 i switch to the second colorRamp
  • value of 2 switch to the third colorRamp
  • value of 0 is the first colorRamp

Note: i know that i could just link the first and second MixRGB to the input and control them individually, but i would like to control both of them with one controller if possible.

$\endgroup$
2
  • $\begingroup$ I answered your question but I realized that your color ramp don't do anything since their factor is alway 0.5. their output value will always be the color in the middle of the ramp $\endgroup$ – Gorgious Jan 31 '20 at 11:31
  • $\begingroup$ Right, i was only trying to demonstrate the problem, now i have it where i want to like so: drive.google.com/open?id=17DfM-dHE91f6NnDYmQWh6QE-ASShKAyH $\endgroup$ – Maged E William Jan 31 '20 at 11:50
3
$\begingroup$

Check 'Clamp' on the first one and add a 'Map Range' node between the value and the 'Fac' of the second one. Check clamp on it and set its parameters: 'From Min' to 1, 'From Max' to 2, 'To Min' to 0, 'To Max' to 1.

enter image description here enter image description here

$\endgroup$
2
  • $\begingroup$ Worked great thanks! $\endgroup$ – Maged E William Jan 31 '20 at 11:31
  • 1
    $\begingroup$ Neat solution. Hope you don't mind the edits.. so many 'from's and 'to's flying around... reverse if you don't like them. $\endgroup$ – Robin Betts Jan 31 '20 at 12:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.