Can anyone help me with the proper (hopefully simple!?) expression or script to use to change the text in a Text object with the push of a Pad? (Or should I use a Monitor object?)
Greatly appreciated!!!!
Steve
Change text in a Text Object or Monitor object with Pad...
-
- Newbie
- Posts: 16
- Joined: 08 May 2013 14:27
Re: Change text in a Text Object or Monitor object with Pad.
insert script in Pad
on expression x , rise from 0 (up arrow)
Replace textObjectName in the script above with the actual name of your Text object. The script is triggered when x leaves zero (up arrow) so that means it is executed whenever the pad is PRESSED.....
You could have a different script for example, for when the pad is released (on expression x, down arrow)
A reference of all the "attributes" that you can change via scripting for each object is at the end of the manual. Remember, expressions are only the "variables" of the objects (x,y,z where applicable) - all the rest are "attributes"....
on expression x , rise from 0 (up arrow)
Code: Select all
setattribute(TextObjectName,'content','some text here');
You could have a different script for example, for when the pad is released (on expression x, down arrow)
A reference of all the "attributes" that you can change via scripting for each object is at the end of the manual. Remember, expressions are only the "variables" of the objects (x,y,z where applicable) - all the rest are "attributes"....