algorithmic modeling for Rhino
Hi guys, hi David,
Just a simple question: in the drawing method of the TextTag 2D there is a Boolean parameter for justification of the text: Center-Center or Lower-Left.
Is it possible to add another 2 options: Middle-Left and Middle-Right?
Thanks,
Dmitriy
Tags:
It is possible. I'll see what it takes, if it's a lot of work I may put the wish on the GH2.0 pile.
--
David Rutten
david@mcneel.com
Tirol, Austria
Thanks David.
Hopefully it is not much work - and we can see it still the GH1.0.
Dmitriy
Hi David,
Any chance to introduce justification in the next release(s)?
Would really need it.
Thanks,
Dmitriy
Fantastic!
Guess relevant method will be added in RhinoCommon as I need to use it via RhinoCommon.
Thanks a lot David!
No, there didn't seem to be a way to do it in RhinoCommon. You can create a TextEntity with justification but I couldn't figure out how to render it in the viewports. So I'm still using Rhino.Display.Text3D and figuring out how to adjust the TextPlane based on the justification and boundingbox properties.
--
David Rutten
david@mcneel.com
Tirol, Austria
Ok, I am a bit confused. What about 2D Tag?
Will it be possible to draw 2D tag with 9 points justification via Args.Display.Draw2dText?
Thanks,
Dmitriy
It seems that Draw2dText only has a single boolean argument for middle justified text. If you want more control you may have to draw camera aligned 3D text.
It's a bit more involved but totally possible in your own code.
--
David Rutten
david@mcneel.com
Tirol, Austria
Thanks David,
The issue with the Tag2D is that size is in pixels and always the same.
I guess Text3D will change the size if Zooming In or Out.
Regards,
Dmitriy
You have to adjust the font-size based on how far away you draw the text. Basically you draw the 3D text on the camera near plane, figure out how many pixels/unit there are on that distance and then adjust your font-size accordingly.
--
David Rutten
david@mcneel.com
Tirol, Austria
Hi David,
Can you provide some initial example for camera aligned 3D text?
Thanks,
Dmitriy
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by