Graphics

 View Only
Expand all | Collapse all

Looking For - Script to either set character limit or Word Wrapped Height limit

  • 1.  Looking For - Script to either set character limit or Word Wrapped Height limit

    Posted 09-10-2014 18:55
    Hey there

    Anyone have a script for a text object that sets a maximum character limit or when word wrap is enabled, scales the text to a maximum height?

    I'm updated to v5.5 if that matters to anyone. I've got basically 0 scripting background so any help would be huge!


  • 2.  RE: Looking For - Script to either set character limit or Word Wrapped Height limit

    Posted 09-17-2014 13:01
    Mark your text field, and choose Edit Script Events (or press CTRL+SHIFT+E)

    Type in this line, followed by F7 (to verify the OnSetText script)

    text=left(text,20)

    in this case max length of characters is 20

    #XPression