Page 1 of 1

Note layer text from lua?

Posted: Wed Nov 29, 2006 3:50 pm
by rylleman
Is it possible to set a note layer text from a lua-script?
I haven't found a way to do this but thought I might be missing something.

Posted: Wed Nov 29, 2006 4:13 pm
by Rai López
I always have wanted it too but never have found the way, at least in the Scripting Documentation or even with that tools to print all the available Lua values & funtions, so... I think it's not possible although I'd like to be wrong...

Posted: Wed Nov 29, 2006 8:04 pm
by rylleman
Too bad! I had a really useful script thought up but i dont think I can create it without being able to temper with the note from the script.

Posted: Thu Nov 30, 2006 2:48 am
by Rai López
...BTW! somebody (fazek, I believe...) said something in the past about the possibility of store some string info using Switch Layers and its Switch Values, that seemed to me like a very good idea over all cause it could even change over the time... So, well, I don't really know nothing about your script (although I'd want :)), but if you are looking for a way to store some animatable data inside a Moho document by scripting that could be the key. Precisely I'm now making some experiments with that possibility, we'll see...

Posted: Thu Nov 30, 2006 9:46 am
by rylleman
That's an interesting possibility, unfortunately it wouldn't help me in this case.
I need to display some data onscreen, changeable over time and renderable.
The only way to display text is with note layers (since the text tool creates vector layers).

I think I can create a solution not using scripting but that wouldn't be at all as elegant.