@Bianchi wrote:
Hi everyone,
I’d like to display text (as in floating text, not text dots) whose ‘anchor’/location is based on a point, similar to the .gh file given by David Rutten in this post:How to display text. I’m attaching the same file here that David posted in that discussion in case anyone misses it. drawing3dalignedtext.gh (6.8 KB)
However, I’d like to do it in Python. From what I’ve observed (intermediate Python coder, so I’m familiar with coding in Python, but not that great) there isn’t an equivalent of the C# override for DrawViewportMeshes (correct me if I’m wrong!). How would I go about implementing the same thing in Python, completely as a script inside a component (no outside components needed except for input)?
Example:
Other things I’d like to do: the text should adjust for perspective, and the font and size can be changed. I don’t need to bake the text or anything, but I may need to keep track of the text content and store it inside the User Data of the point should I bake it, because I am using the outputs of certain operations
as inputs for others.Much thanks in advance!
P.S. I’ve received suggestions on using Custom Display, but I’d like to avoid using it as it tends to crash my Rhino app.
Posts: 2
Participants: 2