PDA

View Full Version : LUA Scripting


SGW
09-26-2005, 11:09 AM
Hi

New to AutoPlay Media Studio 6.0, I wondered if LUA scripting that is not a regular part of the program is supported. If I locate LUA script/syntax in a LUA guidebook that is not currently a part of AutoPlay Media 6.0, can I use it and will it likely work?

For example, I am trying to design a script that could count not only number of words in a paragraph (text object) but possibly also parse and count the number of syllables per word. This may be impossible in LUA. But, were LUA to have, for example, a "get word count" script, could it be used?

Thanks for your help.

Kind Regards,
Stephen

TJ_Tigger
09-26-2005, 11:26 AM
Hi

New to AutoPlay Media Studio 6.0, I wondered if LUA scripting that is not a regular part of the program is supported. If I locate LUA script/syntax in a LUA guidebook that is not currently a part of AutoPlay Media 6.0, can I use it and will it likely work?

For example, I am trying to design a script that could count not only number of words in a paragraph (text object) but possibly also parse and count the number of syllables per word. This may be impossible in LUA. But, were LUA to have, for example, a "get word count" script, could it be used?

Thanks for your help.

Kind Regards,
Stephen

yes you can. As far as I know, you can use any of the LUA functions or code within an AMS 5/6 project. There are some great string functions you could use to count the number of words in a string. Just make sure that you use lowercase for the LUA functions.

Also check out Lua.org and there is a luausers wiki with a lot of code you could possibly use.


Tigg

SGW
09-26-2005, 11:45 AM
Thanks, Tigg. That's wonderful!

Stephen