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

Discuss Lemur and share techniques.
Post Reply
stevendieveney
Newbie
Posts: 16
Joined: 08 May 2013 14:27

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

Post 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
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

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

Post 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"....
Post Reply