Check version or build

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

Post Reply
ernpchan
Posts: 154
Joined: Thu Aug 13, 2015 7:18 pm
Contact:

Check version or build

Post by ernpchan » Tue Sep 01, 2015 11:37 pm

Is there a way to check version or build number? I've done a search for build and version on the doc site and only found a way to check between Pro and Debut.
My opinions and comments do not represent those of my employer.
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo
Stan
Posts: 124
Joined: Sun Apr 19, 2009 3:22 pm
Contact:

Re: Check version or build

Post by Stan » Tue Sep 01, 2015 11:49 pm

There is a method AppVersion for the "moho" object. It is available since 9.5, and it returns a string, so if you want to check for some compatibility you may need to convert it to a number.

And if you didn't mean to programmatically check the app version with Lua, then just use the "Help > About..." menu. :)
________________________________________________________________________
http://mohoscripting.com/ - Unofficial Moho (Anime Studio) Lua Scripting Documentation
http://2danimator.ru/ - Russian Anime Studio Forum
sbtamu
Posts: 1911
Joined: Tue Dec 15, 2009 5:05 am
Location: Texas
Contact:

Re: Check version or build

Post by sbtamu » Tue Sep 01, 2015 11:53 pm

Right click on any saved anme file and open with notpad and read the 1st few lines of code. It will tell you what version it is.
Sorry for bad animation

http://www.youtube.com/user/sbtamu
ernpchan
Posts: 154
Joined: Thu Aug 13, 2015 7:18 pm
Contact:

Re: Check version or build

Post by ernpchan » Wed Sep 02, 2015 12:15 am

Thanks Stan! That's perfect.
My opinions and comments do not represent those of my employer.
http://www.ernestpchan.com
http://www.zazzle.com/gopuggo
Post Reply