Grasshopper

algorithmic modeling for Rhino

Hi,
does anybody know how to script a text object - just like text in Rhino dimensions bar? I want to attach text (number) information close to geometry so the concept will be easier to read? I found in rhino SDK help file classes OnTextDot, OnTextEntity, OnTextEntity2 and I think there is an option to make it work somehow. But I'm not sure how use classes. Any suggestion?

Views: 602

Replies to This Discussion

The biggest issue is that GH won't display any of that information from within the scripting component, and it won't get "transferred" to other components, since it doesn't have types setup in GH either. So that means that you're really going to have to add the object to the document yourself. I'd take a look at the following example, which is for a text object (not a dot) and see if that helps.

http://en.wiki.mcneel.com/default.aspx/McNeel/AddTextItem
Thanks for reply.
In my case, putting text into scene will be the final step so i don't need to work with text - just post it. I want to do something like that : https://api.ning.com/files/kjDKIU5jbKRZ55cD8feNfzYx3y1UbKWRPNDH1ZCp...__http://www.grasshopper3d.com/photo/hoppereco01-1/prev?context=latest
hi milan

so in your case just use the component "text tag 3D"
you need a point were the tag should be so a vertex of your geometry and the of course the text

- to]
ahhhhh it is hidden in tab vector - table point! So it's preaty easy - thank you so much! I was blind to see that...

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service