Phil Cartier Posted December 28, 2023 Share Posted December 28, 2023 HI all: I need an assist in creating Vectorscripts to change text properties: e.g.: lower case to upper, upper to title caps, color, etc. Many TIA. Phili Cartier Audio Envelope, Atlanta audiopc@earthlink.net Quote Link to comment
Pat Stanford Posted December 28, 2023 Share Posted December 28, 2023 Are you ready to pick some people up off the floor? 😉 For this you are probably better off using Python. You can use the Python text handling routines rather than the Vectorscript ones. The Python text handling is much more powerful. If you don't want to change your entire script to Python, you can use the PythonExecute or PythonBeginContext/PythonEndContext to run a Python script inside of a Vectorscript. Use vs.GetVSVar and vs.SetVSVar inside the Python script to read and write VS "String" (DynArray of Char) variables to pass data in and out. Quote Link to comment
Sam Jones Posted December 29, 2023 Share Posted December 29, 2023 Python's string handling is famously more powerful, but none of what you describe would seem to need it. 1. VS function "UprString()" will convert a string to upper case 2. My only experience with title caps is as a font. I would convert the string to that font using "SetTextFont()" 3. Changing the color of text is just a matter of setting its color with "SetPenFore()" If you need help with how to use vectorscript itself that is a whole other ballgame. You would need to describe exactly what you want to achieve and show us how far you have progressed and where you are stumped. Lastly, do you want an example vectorscript? If so, to do exactly what with what? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.