Charpath
I woke up this morning with an idea for how to do a node I've been wanting for YEARS.
Charpath works exactly like textpath with one difference: instead of returning a single path, it returns a list of paths, one for each character. AND NO EXTERNAL CODE MODULE IS REQUIRED!
Each character path is in the position it would have been as part of a textpath, and contains the same contours. Change the font, font size, alignment, position, or width and all the individual character paths will update accordingly.
Demo attached. I enter a simple phrase into charpath and then give each character a different color. Try that with textpath!
Enjoy!
-
charpath_screenshot.png
533 KB
- char_path_demo.ndbx.zip 127 KB
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
Support Staff 1 Posted by john on 21 Jan, 2025 09:43 AM
UPDATE
I have released an improved version of charpath that can handle text with line breaks.
Details and a demo with the updated charpath node here:
http://support.nodebox.net/discussions/show-your-work/859-line-brea...