I have been using the node tree in the image to have a Bezier curve displacing the geometry on a plane. I would like to know how to mimic the results of the color ramp in the map range?
Also the position and offset input of set position nodes are giving various results so what's the math behind it?'

GN graph

this is the result I get while using a color ramp and I need to replicate this in map rangeenter image description here

  • $\begingroup$ About the Set Position node input sockets: your graph is producing different results because the Offset is added to the vertices position, whereas you are subtracting it from the vertices position to compute the new position. $\endgroup$ Mar 3 at 8:20
  • $\begingroup$ @StefLAncien so if I remove the position node from the math node I can get the same value while connecting into the offset input as it will not add the position into itself $\endgroup$ Mar 3 at 9:31
  • $\begingroup$ The question about map range is not clear to me. Have you tried to map range the distance? What do you obtain that is not what you want? $\endgroup$
    – lemon
    Mar 3 at 10:31
  • $\begingroup$ @lemon rather than using color ramp to invert the values i want to use map range $\endgroup$ Mar 3 at 11:45
  • $\begingroup$ StefLAncien has showed it... $\endgroup$
    – lemon
    Mar 3 at 11:47

1 Answer 1


(Using Blender 3.6.8)

1st attempt

An Attribute Statistics node is returning the min and max of a field that can be plugged to a Map Range node to linearly bring values between 0 and 1, used afterwards as the Fac parameter of the Color Ramp node:

GN Graph/


2nd attempt

GN graph with map range

3rd attempt

GN graph with negative displacement

4th attempt

GN graph with negative map range

  • $\begingroup$ this is not the result I want to get . I have added the result I need to get. $\endgroup$ Mar 3 at 9:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .