Convert capitalization of dynamic text
I'd like to make a lens that utilizes dynamic text in a certain style that looks best in all capital letters. However, the dynamic text's default style is the standard autocaps. I'm not experienced in scripting, and would appreciate any advice on how to change the capitalization of such text. Thanks!
-
strings can be converted to all caps by using: toUpperCase()
for example, if you had a script containing a string called myString, and you typed whatever you want into myString in the inspector panel, this would convert into uppercase and print out whatever you entered:
//@input string myString
print(script.myString.toUpperCase())so in your case you could maybe set script.myString to contain the dynamic text string, and then do script.myString.toUpperCase()
Comment actions
Please sign in to leave a comment.
Have a comment?