Directional Text

john's Avatar

john

07 Jul, 2017 09:24 PM

Text that follows the rim or spokes of a wheel is sometimes upside-down, making it hard to read.

The two subnetworks in this demo, true_arc and true_spoke, solve this problem, creating text that is always right-side-up and easy to read regardless of where it lands.

True_arc is for text placed on the rim of a wheel. Given the position and radius of your wheel, and the angle where you want the text to start, it creates an arc path that causes text to flow clockwise when it lands above the horizon, or counter-clockwise when it lands below the horizon. Just feed it into your text on path node.

True_spoke is for text placed on the spokes of the wheel. Create your text first using a text on path node and then feed that into true_spoke. If the text is flowing in an easterly direction it leaves it alone; if it is flowing in a westerly direction it rotates the text so that it will read correctly.

NOTE: True_spoke tries to guess the direction of the text path by looking at the first and last points, which will vary slightly depending on the font and how each character is drawn. When the angle is close to due north or due south the direction can flip back and forth in subsequent spokes if spokes are close together. If this happens, replace true_spoke with the flip_spoke subnetwork (inside true_spoke). Flip_spoke requires the angle, so you will have to provide that yourself.

The attached demo shows both cases with two instances of text on the rim and two instances of text on the spokes.

Enjoy!

John

  1. 1 Posted by Sue on 24 Feb, 2019 05:38 PM

    Sue's Avatar

    Thanks John! I'm just researching on the solution of rotating text and this seems to be very close to what I need. I have one question though, if I use multiple rotated "textpath" instead of using "text on path" can it still work? Thank you!

  2. Support Staff 2 Posted by john on 24 Feb, 2019 09:31 PM

    john's Avatar

    Sue,

    Yes, it works fine with ordinary text paths as well. See attached screenshot and three-node demo.

    I hope this node helps you with your project!

    John

  3. 3 Posted by Sue on 25 Feb, 2019 04:06 PM

    Sue's Avatar

    It certainly did. Saved so much time. Really appreciate it John.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • directional_text.zip 2.91 KB
  • directional_text_screenshot.png 405 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

15 Jun, 2019 06:58 PM
26 May, 2019 10:52 PM
02 May, 2019 04:56 PM
27 Apr, 2019 04:03 PM
26 Apr, 2019 12:46 PM

 

26 Apr, 2019 12:17 PM
26 Apr, 2019 12:16 PM
24 Apr, 2019 02:04 AM
31 Mar, 2019 10:32 AM
24 Mar, 2019 08:45 PM
24 Mar, 2019 12:07 AM