Page 1 of 1

Change text in a Text Object or Monitor object with Pad...

Posted: 08 May 2013 15:11
by stevendieveney
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

Re: Change text in a Text Object or Monitor object with Pad.

Posted: 08 May 2013 15:43
by Softcore
insert script in Pad

on expression x , rise from 0 (up arrow)

Code: Select all

setattribute(TextObjectName,'content','some text here');
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"....

Re: Change text in a Text Object or Monitor object with Pad.

Posted: 08 May 2013 16:13
by Softcore
here's a working example to get you started

http://forum.liine.net/viewtopic.php?f=34&t=3125#p12267