Grasshopper

algorithmic modeling for Rhino

Is there a way (easy or hard) to force a text to justified-right?

Please see the attached image.

I have tags that are placed radially around a circle.

The text to the left of the circle becomes upside down.

My solution was to calculate the angle of the planes used to place the text and a basic X vector, and rotate the planes on the left half of the sphere 90 degrees. That worked ok.

The problem, as seen in the image, is that this rotate text would need to be right justified...

Any known work around?

If I could at least get the width of the text, I could move them outwards....

Views: 4624

Replies to This Discussion

(for some reason it wouldn't let me reply to your last msg).

I use 5 as well, but I ran into some compatibility issues with 5 and ghowl, so I had to go back to 4.

Shot out for Dave: Would it be hard to implement a Justify-text parameter (0,1,2; Left, Center, Right) to the 3D Text tag?

There is a GH workflow I have used that's a bit tedious, but may help:

_convert your text to outline curves

_get the bounding box (will be a flat box)

_extract the appropriate edge length

_shift your text insertion point as required

"txtLines" by Giulio will get you the outlines:

http://www.giuliopiacentino.com/grasshopper-tools/#more-1033

Thanks Taz.

I will try this as well.

Is the outline curves cpu intensive?

Reply from David confirms what Vicente had noticed:

"this will have to wait until Grasshopper runs on Rhino5 only. R5 has a lot more text options for this kind of stuff but I can't use it until I can drop support for Rhino4."

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service