Extruding cylinders to different heights based on an attractor point

Hello, I hope you are all doing well. I have been trying to make an attractor point that would make the magnitude of the extrusion be different depending on how close the circles are to the attractor point. Would anyone be able to help? I


Modify 2.2.gh (23.4 KB)

You were pretty close to the solution.

Modify 2.2_re.gh (19.4 KB)

-Kevin

1 Like

Oh strange this didn’t notify me, and I just saw this. Thank you for the help. By the way, would you happen to know how to bake an object like this so the gradient shows up?


FA23_GH_Example_02_ATTRACTOR_SCRIPTS_part2.gh (42.5 KB)

Best wishes, and thank you for your support

1 Like

In Rhino 8, you can bake objects with an Object Display Color. The Bake Content component is set to bake automatically.

bake_content_object_display_color.gh (14.2 KB)

1 Like