Page 2 of 2

Extra-nubie question.

Posted: Sun Aug 28, 2011 7:26 pm
by ortseam
Hello! I'm not a skilled person in writing scripts. The only my experience is making jesusonic plugs for REAPER DAW. I understand well the algorithm structure and math, but I'm not familar with the concept of object-oriented programming. Maybe that is the cause why I have some stupid questions about the example given in Gilles Charbonneau's "Scripting in Anime Studio"
Explain me please the next things, if it's possible:

As I understand, the functions like this
> function gc_drawcircle:Name()
> return "Draw Circle"
> end
have predefined names and can be called by the host when the script is integrated into it. And statements like this:
> local v = LM.Vector2:new_local()
use some variables defined by the host.
If so, where can I read the documentation about all these variables and functions? I'd like to know their names, their meaning and how is this all organized...

Thank you for every helpful word.

Posted: Sun Aug 28, 2011 8:42 pm
by GCharb
This should be posted on my blog, as we are high-jacking this thread right now!

The first function adds the name of the script to the array or table, as they say in Lua, that we defined with gc_drawcircle = {}.

I posted links to documents at the bottom of the tutorials, you will find all the constants, functions and classes needed to script for anime studio into these files!

Posted: Mon Aug 29, 2011 9:52 am
by ortseam
Thank you!
I'll keep trying to understand Lua scripting.

PS: As you asked I've reposted my question in your blog.