Is there any scripting program i can use to write scripts

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
707dragon707
Posts: 46
Joined: Sat May 10, 2014 1:09 am

Is there any scripting program i can use to write scripts

Post by 707dragon707 »

I have a debut version and i would like to try writing scripts. is there any lua console or something can use.
User avatar
hayasidist
Posts: 3849
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: Is there any scripting program i can use to write script

Post by hayasidist »

you need a text editor e.g. notepad / notepad++ / wordpad
User avatar
707dragon707
Posts: 46
Joined: Sat May 10, 2014 1:09 am

Re: Is there any scripting program i can use to write script

Post by 707dragon707 »

hayasidist wrote:you need a text editor e.g. notepad / notepad++ / wordpad
I have notepad and wordpad, now how do I make it a LUA file to be compatible with Anime Studio.
User avatar
hayasidist
Posts: 3849
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: Is there any scripting program i can use to write script

Post by hayasidist »

do you already know how to write programs? if the answer's "no", you'll need to learn. Try starting here: http://code.org/learn/beyond

do you know LUA? Here's a link to the LUA manual: http://www.lua.org/manual/5.2/

do you know how to interface LUA to Anime Studio? If not, you could start here for the reference manual: http://www.animestudioscripting.com/ani ... -reference (that manual is for AS Pro, but you can still write and use scripts in Debut.)
and here for some practical tips: http://gcharb2d.blogspot.co.uk/search/label/Scripting

When you get into actually writing a script and hit a wall, just ask...
User avatar
707dragon707
Posts: 46
Joined: Sat May 10, 2014 1:09 am

Re: Is there any scripting program i can use to write script

Post by 707dragon707 »

hayasidist wrote: do you know how to interface LUA to Anime Studio? If not, you could start here for the reference manual: http://www.animestudioscripting.com/ani ... -reference (that manual is for AS Pro, but you can still write and use scripts in Debut.)
When it says void is that where you hit tab, write what moule your using, or whats the deal with both the void and scripts being indented in certain places.
User avatar
synthsin75
Posts: 10270
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: Is there any scripting program i can use to write script

Post by synthsin75 »

"void" means that the command does not return a value, so if you assign it to a variable, it will have nothing to pass to that variable.

Indenting is just a common way to keep track of what is called scope (the section of code where a local variable is valid). Such a section in Lua often starts with "if" and ends in "end". Indenting helps keeps track of which "end" goes with which "if".
Post Reply