Color meshes by distances to several attractor points

Hi,

I generated this point cloud using gh and kangaroo.
In the next step i´d like to apply colors to the mesh spheres based on the distances to 4 attractor points (see images).
With only 1 attractor point it would be clear how to do it but with 4 things seem to be different...

Can anyone help me on this?

Thanks in advance,

Simon

  • up
  • up

    Simon Vorhammer

    Thanks so much! that is exactly what i needed.

     

    • up

      mando kek

      hello David,

      I was wondering, is there a way to apply this logic to a mesh? i have a grid, which i subdivide into groups based on the distance from attractor points. the grid is transformed  in x,y,z directions based on the attractor points, and using the plug in Mesh from Points, i create a mesh out of these points. so is there a way to create a gradient colouring of the mesh, based on the distance between its vertices and the attractor points? so in a way it is obvious which part of the mesh was influenced by which attractor???

      thanks in advance for your reply!

      2