Changing a value to text

Discuss problems and solutions.
Post Reply
Jeshua
Newbie
Posts: 15
Joined: 13 Jan 2012 06:38

Changing a value to text

Post by Jeshua »

This is probably a simple fix, but I haven't found a way to exactly do this. I have a made a knob object with a grid set to four. I'd like each of the four numerical values, 0.000, 0.333, 0.6667, and 1.000 to be displayed within a monitor object but as text, i.e. 0.000 = a, 0.333 = b, etc.

The monitor object of the knob currently displays the numerical value of the knob by just typing knob.x within the Monitor objects value, how can that be changed to something like letters?
Softcore
Regular
Posts: 1613
Joined: 04 Nov 2012 08:34

Re: Changing a value to text

Post by Softcore »

Here's an example - to change what is displayed simply change the string array data named "val" - remember that as these are string values (text) they need to be included in ' ' to work.
text-monitor.jzml
(3.47 KiB) Downloaded 84 times
same approach but using the script to directly set the monitor value by referencing it....a bit smaller in file size
text-monitor2.jzml
(3.21 KiB) Downloaded 82 times
Jeshua
Newbie
Posts: 15
Joined: 13 Jan 2012 06:38

Re: Changing a value to text

Post by Jeshua »

Thank you! I'm just now learning how to program so this will be great to study and use in my first Lemur template.
Post Reply