Using Script

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
laniangeline
Posts: 49
Joined: Tue Sep 11, 2007 1:14 am
Location: California
Contact:

Using Script

Post by laniangeline »

:?: I don't know how to use script. I also can't find anything really about it in the standard tutorial. Is there information on how to use it out there. How do you do script? :?

Which code does Anime Studio Use? :?:

Any advice you can give me will help!!
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 7:27 am
Location: España / Spain

Post by Genete »

Anime Studio uses lua language for scripts.
Thescript reference for Moho (Anime Studio) is sticky at the Scripting sub forum.
There are three main kind of scripts:

Menu scripts: They are launched when the menu entry is clicked. Only the entries under "Script" menu are really scripted orders. The other menu entries are built in features (machine language). You can open one of the scripts (go to scripts/Menu in your computer) and see how the code is written. Usually menu scripts make a single action based on current selection. They can be also converted into button tools when it is a tool of only a click (for example the button to make "Peak" a point).

Tool scripts: similar to the other ones but usually they have continuous interaction with the user by means of the mouse and keyboard. For example the "Add Point" tool.

Embedded scripts: Those scripts are stick into a particular layer and are run on every frame (well I think they run more times but this is not documented, I think). For further information see this post.

Best
-G

PS: Also several users have made its own scripts. You can download them and see how are they written. And don't loose macton and fazek ones!!!!
User avatar
laniangeline
Posts: 49
Joined: Tue Sep 11, 2007 1:14 am
Location: California
Contact:

Post by laniangeline »

Thanks again G!! :D
Post Reply