algorithmic modeling for Rhino
With reference to the post generate text and use outlines in grasshopper... is it possible?, I am trying to output text visually and as an actual output in Rhino using a Grasshopper scripted component. Basically, it should act like any Rhino.Geometry: it can be previewed and is removed from the display when the Preview is removed, and it can be baked using the component. It can also be used as input to another scripted component.
From what I understand based on the post above, there is currently no way in Rhino 5 to make TextObjects that function similar to Rhino.Geometry (not Objects.Add<geometry>), i.e. preview-able and bake-able, and not immediately added to the Rhino Document. Am I wrong in this understanding? If someone could help me out with which functions to use or by giving an example of a workaround, I can adapt it from there. I am coding in Python.
I've attached a file containing how far I've gotten so far, based on the gh file posted by Mostapha in the linked post. What am I doing wrong/what am I missing here?
Tags:
See answer on discourse.
Correct file
Hmm, I tried this. Unfortunately, it doesn't output anything, and my goal is to get the Text Entity/Text Objects themselves, not just the outlines.
Hi Bianchi,
I have read your thread thoroughly. I thought you just wanted to avoid having to bake the text curves in rhino and then reference them in as GH_Curves. My snippet is a workaround this behaviour.
You will never get the TextEntity objects to behave as you want them within GH, but as per David's post you have to create your own GH_text type that inherits from IGH_GeometricGoo.
Apologies for not being able to help.
Best,
M
Hi Marios,
Thank you for the help either way. I'm not too familiar yet with how TextEntity objects work, so this particular problem helped me learn more about how to handle them. My apologies for not being clearer in my description.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by