Colouring offset circles from center point

Hi all,

I’m offsetting curves from an original circle. I’m trying to evaluate the distance between the centre point of the original shape and the last circle in the series of offset’s that I have created. All that in order to colour the curves depending on that distance.

I’ve tried evaluating the points on the offset curves and trying to isolate the last value in the distance to remap with the first circle centroid but it keeps returning 25 values instead of one.

If this doesn’t make any sense please let me know and I’ll explain further.

Cheers,
Thom

ColouredCircleFromCenter.gh (11.8 KB)

ColouredCircleFromCenter_re.gh (7.9 KB)

Is this what you want?

1 Like

That’s exactly what I was after, Thanks a lot! It was all about flattening and reparametrizing before evaluating! I getting really confused as to when to use those.

I think you need to learn about Data Tree & Data Matching
http://grasshopperprimer.com/en/1-foundations/1-5/2_what-is-a-data-tree.html

Thanks for the link. I definitely do!