Next Lemur Update??

Discuss Lemur and share techniques.
joebataz
Regular
Posts: 154
Joined: 28 Feb 2012 16:50
Location: Anthem, AZ USA
Contact:

Re: Next Lemur Update??

Post by joebataz »

OK, that would make sense.

Would this work then?

setattribute(A_CurrTime,'content',arraytostring(A_SeqTime[A_CurFrame]));

Or would I have to use my own conversion that I use with my keyboard page?

Thanks,

joeb
axel_liine
Liine Staff
Posts: 126
Joined: 14 Dec 2011 12:12

Re: Next Lemur Update??

Post by axel_liine »

arraytostring will convert an array of ASCII values to a string, so here you'd have to first decompose your integer variable to such an array ('0' is 48, '9' is 57). It's a bit tedious but is the only solution until we add more string-related functions in the script engine.
joebataz
Regular
Posts: 154
Joined: 28 Feb 2012 16:50
Location: Anthem, AZ USA
Contact:

Re: Next Lemur Update??

Post by joebataz »

That's what my keyboard scripts do so I already have the code to do it. But the monitor solution works well and I will keep it the way it is.

Thanks for the help

joeb

BTW
Anyone who wants my code just download the LDJ template and look for convertAsc and convertDec. The first one will take a single ASCII character and convert it to the standard decimal value and the second does the reverse. At the very least it will save you having to look up the ASCII/decimal values.

jb
Post Reply