Like a color ramp but mappable?

I’d like to have a ColorRamp but one I can map onto objects to paint them with the color of the ramp, or I can use a black and white map to mix materials. The way I see it I can’t do that with a color ramp because it doesn’t have a mapping input. What could I use?

Use a gradient texture as an input to the colorramp and it will work as you want. Then you put the mapping into the gradient texture. I hope it helps. :grinning:

That works, thank you.