How to paste a text to multiple closed curve centerpoints?

I’m trying to add a text, copy it into several curves exactly at each closed curve’s centerpoint.
I’m handling more than 1000 unique closed curves, so I cannot copy one by one.
How can this be solved?

Hello - here is a quick and dirty python that should help -

CopyToAreaCentroids.py (816 Bytes)

To use the Python script use RunPythonScript, or a macro:

_-RunPythonScript "Full path to py file inside double-quotes"

-Pascal

2 Likes

Also possible with Grasshopper:

image

(reference your curves with the Curve parameter, change the text in the panel to what you want, adjust the text height and bake the text tag component)

TextToCrvCentroid.gh (8.9 KB)

2 Likes

Thank you so much! I’ll try using it on my second project. :slight_smile:

It worked perfectly! thank you!