Text : Cut Text with Replace

2 Nodes :

Cut text with replace
Cut text with append

They both truncate a string and either replace the last characters or append it with another chosen string if the text is longer than a chosen maximum (for exemple : this is a long text that …).
Quartz Composer had this function if I’m right.

Place these .c node inside your Vuo Modules folder.
You can search for these node by typing BSS in the node library.

Any feedback or improvements welcome.
Original code by ©Kosada Incorporated, released under MIT License, modified by Bodysoulspirit.
This code may be modified and distributed under the terms of the MIT License.

bss.text_.cutwithreplace.c.zip (1.26 KB)

bss.text_.cutwithappend.c.zip (1.21 KB)