first steps for newbies

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

Moderators: Víctor Paredes, Belgarath, slowtiger

ortseam
Posts: 2
Joined: Sun Aug 28, 2011 3:45 pm

Extra-nubie question.

Post 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.
User avatar
GCharb
Posts: 2274
Joined: Mon Oct 10, 2005 2:31 am
Location: Montreal, Quebec, Canada
Contact:

Post 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!
ortseam
Posts: 2
Joined: Sun Aug 28, 2011 3:45 pm

Post by ortseam »

Thank you!
I'll keep trying to understand Lua scripting.

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