MohoScripting.com - unofficial Moho scripting documentation

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

Moderators: Fahim, Distinct Sun, Víctor Paredes, erey, Belgarath, slowtiger

Stan
Posts: 118
Joined: Sun Apr 19, 2009 3:22 pm
Contact:

MohoScripting.com - unofficial Moho scripting documentation

Post by Stan » Mon Aug 31, 2015 11:49 pm

Hi all,
I'm proud to present the unofficial online scripting documentation for Moho (Anime Studio) Lua API:

http://mohoscripting.com/

The site is a fan project created by me a while ago, before ASP 9.5 was out. I keep it updated from version to version (currently it's 12.2).
Although most of the methods don't have a description yet, however, recently Mike Kelley, Synthsin75 and Hayasidist joined the team, and I hope that eventually we'll also get some help from the developers themselves, maybe... :)

Anyways, the site is already far more useful than any other available documentation. Enjoy!


UPD: ASLua.com is now MohoScripting.com
Last edited by Stan on Tue Nov 22, 2016 5:59 am, edited 2 times in total.
________________________________________________________________________
http://mohoscripting.com/ - Unofficial Moho (Anime Studio) Lua Scripting Documentation
http://2danimator.ru/ - Russian Anime Studio Forum
User avatar
Víctor Paredes
Posts: 4857
Joined: Wed Jan 26, 2005 12:18 am
Location: Ireland/Chile
Contact:

Re: ASLua.com - unofficial Anime Studio scripting documentat

Post by Víctor Paredes » Tue Sep 01, 2015 12:41 am

Thank you very much, Stan, you are very generous.
I already made this topic Sticky.
Víctor Paredes
Former Moho Product Manager
Animator in Cartoon Saloon
My Youtube Channel - My webinars
Dodgy
Posts: 206
Joined: Sat Jan 13, 2007 8:01 pm
Location: Sydney
Contact:

Re: ASLua.com - unofficial Anime Studio scripting documentat

Post by Dodgy » Tue Sep 01, 2015 11:53 am

Thank you Stan, this is most helpful!
ernpchan
Posts: 154
Joined: Thu Aug 13, 2015 7:18 pm
Contact:

Re: ASLua.com - unofficial Anime Studio scripting documentat

Post by ernpchan » Tue Sep 01, 2015 1:00 pm

Thank you for making this.
My opinions and comments do not represent those of my employer.
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo
User avatar
Greenlaw
Posts: 4353
Joined: Mon Jun 19, 2006 5:45 pm
Location: Los Angeles
Contact:

Re: ASLua.com - unofficial Anime Studio scripting documentat

Post by Greenlaw » Tue Sep 01, 2015 6:31 pm

Bookmarked! Thanks to everybody involved with this new resource.

G.
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2017
Lead Digital Animator, Dreamworks Animation

Image
Chimp
Posts: 7
Joined: Sat Jul 09, 2016 7:31 am

Re: ASLua.com - unofficial Anime Studio scripting documentat

Post by Chimp » Sun Jul 31, 2016 7:46 pm

Hi there,

Even though this is updated for ASP 11, do all of the functions still work with ASP 10? If not, is there a way to switch to previous versions that just obfuscate the more recent ASP versions' functions and calls?

I'd like to start developing some scripts for ASP 10 and later, assuming that the later versions of ASP 10 will pull from those earlier functions.

Thanks
hayasidist
Posts: 2114
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: ASLua.com - unofficial Anime Studio scripting documentat

Post by hayasidist » Mon Aug 01, 2016 11:58 am

IMO, if you're building a script mainly because you want it, but you'll make it freely and publicly available, I'd just build it for the version of AS you're using.

But if you're (say) planning to sell it, or if you're part of a group (say a study group) that has various version of AS but you want everyone to have the script then I can understand why you'd want to support many versions. So, if you're planning to build scripts for AS10 and onwards, you have a number of choice to make:

>> AS10 functions only (i.e. ignore the new stuff in 11 and later...) -- but there is a risk that some functions you'll need will have changed and cause the script to fail in AS11 onwards

or
>> one script file that checks which version of AS is running it, and invokes version-specific code

or
>> one script file per major version

My straight answer to your " do all of the functions still work with ASP 10?" question is: "No." Some are flagged as "added in AS11", but it's also possible that some functions changed. Each release of AS comes with an "Extra Files" directory that holds a Lua Interfaces.zip file in which are pkg_xxx.lua_pkg files - so you can see what's specific to the version you're working on.


Speaking personally, if I've built something for (say) AS10 and then need to update it for AS11, I freeze a version that works for AS10 - and then use that as the baseline and develop a new version from that for 11 - that means any new features in my AS11 script aren't available for AS10. I've also written scripts that are, in effect, superseded by core product functions and so I've not developed those.
Stan
Posts: 118
Joined: Sun Apr 19, 2009 3:22 pm
Contact:

Re: ASLua.com - unofficial Anime Studio scripting documentat

Post by Stan » Mon Aug 01, 2016 9:03 pm

I'm going to add a version display soon, so for any method you'll be able to see something like "Available from version 10.1". I think it will be useful for many of us. My only concern is that I started to keep track of the version when AS was 9.5, so I don't have any records before that. But still, it's better to have something than nothing.
________________________________________________________________________
http://mohoscripting.com/ - Unofficial Moho (Anime Studio) Lua Scripting Documentation
http://2danimator.ru/ - Russian Anime Studio Forum
User avatar
synthsin75
Posts: 7081
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: ASLua.com - unofficial Anime Studio scripting documentat

Post by synthsin75 » Mon Aug 01, 2016 9:07 pm

Stan wrote:My only concern is that I started to keep track of the version when AS was 9.5, so I don't have any records before that. But still, it's better to have something than nothing.
I think that's fine, Stan. No scripts older than that are still being developed anyway.
- Wes
ImageImageImage
User avatar
strider2000
Posts: 443
Joined: Sat Mar 07, 2015 5:14 pm
Contact:

Re: ASLua.com - unofficial Anime Studio scripting documentat

Post by strider2000 » Mon Aug 01, 2016 9:33 pm

Definitely agree that even without older records, version info is helpful. Thanks! :)
My new website (just getting started) | M1 Characters for Moho
Chimp
Posts: 7
Joined: Sat Jul 09, 2016 7:31 am

Re: ASLua.com - unofficial Anime Studio scripting documentat

Post by Chimp » Tue Aug 02, 2016 8:43 pm

Thanks. I agree also. If you need help, I'm sure many of us will be willing to contribute. Since I am new to LUA, but not coding, it'll be easier to help write descriptions and examples for you, since I am learning it as I go anyway. That way, I can focus on one method/function at a time, then just maybe send you a PM to include, if you're willing.
GaryC
Posts: 53
Joined: Tue Feb 03, 2015 1:02 pm

Re: ASLua.com - unofficial Anime Studio scripting documentat

Post by GaryC » Thu Aug 04, 2016 10:45 am

Is the site working for anyone else? For the last while any time I try going to ASLua.com I'm getting "The site can't be reached" because it's timed out.
hayasidist
Posts: 2114
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: ASLua.com - unofficial Anime Studio scripting documentat

Post by hayasidist » Thu Aug 04, 2016 10:57 am

GaryC wrote:Is the site working for anyone else? For the last while any time I try going to ASLua.com I'm getting "The site can't be reached" because it's timed out.
works fine for me...
User avatar
synthsin75
Posts: 7081
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Re: ASLua.com - unofficial Anime Studio scripting documentat

Post by synthsin75 » Thu Aug 04, 2016 5:57 pm

Working fine here as well.
- Wes
ImageImageImage
GaryC
Posts: 53
Joined: Tue Feb 03, 2015 1:02 pm

Re: ASLua.com - unofficial Anime Studio scripting documentat

Post by GaryC » Thu Aug 04, 2016 6:40 pm

Strange, it works when I use my phone connection. Might need to ask our IT guy why it might not work in the office.
Post Reply