Can you controll the position of Color Ramp markers with (Math) Nodes?

How can I change the Pos Value (marked red) of the two markers (also red) with a node (maybe a Math Node)? Is it possible?

I think you have 2 options the first and probably the easiest is to use this great node group by DanielFox

It gives you inputs for the colour ramp and can be very useful.

The second would be to use a driver but it would be more complicated as you need something to drive the value (maybe a custom property)

3 Likes

Hi DNorman,

Thank you for pointing out this nice solution (which appears to have been around for a very long time). DanielFox’s node group is quite handy and fun to play with. It’s quite clever too. Plus it seems to work with both Cycles and Eevee.

Cheers and stay safe!

2 Likes