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

6B64
Posts: 2
Joined: Thu Aug 25, 2011 3:13 pm

first steps for newbies

Post by 6B64 »

What's the best way to start learning scripting? What tools do I need to get in the very beginning?
Thanks for all your help.
User avatar
GCharb
Posts: 2270
Joined: Mon Oct 10, 2005 2:31 am
Location: Montreal, Quebec, Canada
Contact:

Post by GCharb »

As far as tools goes, you only need a basic text editor, like Notepad for Windows.

I would say the best way to start learning scripting is to look at existing scripts, look at the logic behind those.

There is also a free online book on Lua scripting.

http://www.lua.org/pil

I started to learn scripting in Moho/Anime Studio and should have a basic scripting tutorial on my blog in a day or two.
6B64
Posts: 2
Joined: Thu Aug 25, 2011 3:13 pm

Post by 6B64 »

The book looks great, it is exactly the kind of thing I was looking for!
Where's your blog GCharb?
User avatar
GCharb
Posts: 2270
Joined: Mon Oct 10, 2005 2:31 am
Location: Montreal, Quebec, Canada
Contact:

Post by GCharb »

In my signature
User avatar
GCharb
Posts: 2270
Joined: Mon Oct 10, 2005 2:31 am
Location: Montreal, Quebec, Canada
Contact:

Post by GCharb »

If you are on Windows, you may want to have a look at this free editor though, that is what I use!

http://www.pnotepad.org

And you are quite welcome btw! ;)
User avatar
uddhava
Posts: 318
Joined: Tue Nov 04, 2008 7:24 pm
Location: American back in Hungary

Post by uddhava »

6B64,

Do you really think you can learn scripting? Maybe you are just a spy on this forum! :wink:

Hope you are successful.

udd
User avatar
Lex
Posts: 8
Joined: Fri Jun 24, 2011 1:41 am

Post by Lex »

I'm glad I checked here today. I seem pretty dense sometimes, so the scripting may be a challenge, but I am pretty interested. Thanks Giles for the link to the online book and editor.

Let's see if I can't learn something.
User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 11:31 am
Location: New Zealand

Post by funksmaname »

Hey Gilles, does that notepad support auto tag closing?
I use notepad++ which has highlighted tags but I like the way dreamweaver closes tags if I type </ (it fills in the rest for the open tag)

I also like when working on CSS that you start typing and it autocompletes the attribute... does it support this?

If so, i'll grab it post haste.
User avatar
GCharb
Posts: 2270
Joined: Mon Oct 10, 2005 2:31 am
Location: Montreal, Quebec, Canada
Contact:

Post by GCharb »

It has auto-complete, and a good one at that.
User avatar
funksmaname
Posts: 3174
Joined: Tue May 29, 2007 11:31 am
Location: New Zealand

Post by funksmaname »

Thanks dude!
tags auto complete, but css doesnt - but highlights if incorrect so that saves some time i guess (in DW it comes up with a few options you use arrow and enter to put it in... )
Last edited by funksmaname on Thu Aug 25, 2011 9:02 pm, edited 1 time in total.
ponysmasher
Posts: 370
Joined: Thu Aug 05, 2004 2:23 am
Location: Los Angeles
Contact:

Post by ponysmasher »

Here's a good thread explaining how a script works: viewtopic.php?t=3065
User avatar
GCharb
Posts: 2270
Joined: Mon Oct 10, 2005 2:31 am
Location: Montreal, Quebec, Canada
Contact:

Post by GCharb »

Just posted a tutorial on scripting, might help as well!

http://gcharb2d.blogspot.com/2011/08/sc ... asics.html
ponysmasher
Posts: 370
Joined: Thu Aug 05, 2004 2:23 am
Location: Los Angeles
Contact:

Post by ponysmasher »

GCharb wrote:Just posted a tutorial on scripting, might help as well!

http://gcharb2d.blogspot.com/2011/08/sc ... asics.html
Thanks for this! Hope you don't mind me linking to it from here: http://animestudioscripts.com/tutorials.php
User avatar
neeters_guy
Posts: 1626
Joined: Mon Sep 14, 2009 7:33 pm
Contact:

Post by neeters_guy »

A much needed introduction. Thanks.
User avatar
GCharb
Posts: 2270
Joined: Mon Oct 10, 2005 2:31 am
Location: Montreal, Quebec, Canada
Contact:

Post by GCharb »

Hopefully this will give a few a taste of scripting and we will see more useful scripts soon.

When I started on this last Wednesday, I knew nothing of scripting with Lua and Anime Studio and 2 days later I was posting this, so it shows it is not that hard.

I will not post it officially on the forum yet, in the hopes that I might get a few posts on the blog, hey, all is possible! :)

Darn, as I was writing this post I saw that this is my 300Th posts in the month of august alone, damn!

Hopefully my wife wont find out that I talk more here then I do with her, otherwise I might end-up spending the month of September posting from the hospital! :)
Post Reply