Grasshopper

algorithmic modeling for Rhino

Hey All,

Could anyone help me to retrieve the text position/coordinates using ID/GUID of a Text object please?

Thanks.

R.

Views: 2419

Replies to This Discussion

Thanks Danny, 

I want to try Python too, do you now the command in rhinoscript or rhino to get the properties?

thanks

R.

Hi ryr,

As Danny stated upper solutions with Horster and Human is definitively the way to go.


I am not sure how would you do that in GH Python.

But in plain Python editor you could use the "rhinoscriptsyntax.TextDotPoint" function:

import rhinoscriptsyntax as rs

id = rs.GetObject("Select text dot")
if rs.IsTextDot(id):
    textCoord = rs.TextDotPoint(id)
    print textCoord
else:
    print "you did not select an appropriate object"

.. 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service