Note layer text from lua?

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
rylleman
Posts: 750
Joined: Tue Feb 15, 2005 5:22 pm
Location: sweden
Contact:

Note layer text from lua?

Post 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.
User avatar
Rai López
Posts: 2289
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Post 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...
User avatar
rylleman
Posts: 750
Joined: Tue Feb 15, 2005 5:22 pm
Location: sweden
Contact:

Post 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.
User avatar
Rai López
Posts: 2289
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Post 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...
Last edited by Rai López on Sun Dec 10, 2006 4:14 am, edited 1 time in total.
User avatar
rylleman
Posts: 750
Joined: Tue Feb 15, 2005 5:22 pm
Location: sweden
Contact:

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