Python Scripting for AS

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
InfoCentral
Posts: 935
Joined: Fri May 26, 2006 8:35 pm
Location: Los Angeles, CA

Python Scripting for AS

Post by InfoCentral »

I just noticed that Papagayo is written in Python and it integrates nicely with AS. So is it possible to write scripts in Python for AS? :?:
MEETUP.COM - start or join a group
User avatar
slowtiger
Posts: 6081
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Re: Python Scripting for AS

Post by slowtiger »

Uhm, AS only reads a text file created by Papagayo. That's all. No Python works within AS, it's all LUA.
Rudiger
Posts: 786
Joined: Sun Dec 18, 2005 2:25 am

Re: Python Scripting for AS

Post by Rudiger »

SlowTiger is right about Papagayo, but you could try this:
http://labix.org/lunatic-python/

Not sure how useful it would be though as probably all of the useful things you can do in Python are probably not supported by the AS scripting interface anyway.
User avatar
hayasidist
Posts: 3525
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: Python Scripting for AS

Post by hayasidist »

bearing in mind that the .anme files are just text files then python could be used to do "script"-like things outside AS - e.g. delete all keyframes between frames a and b; insert keyframes to give a parabolic trajectory to layer x between frames a and b; unload all keyframes in switch layer z to a .dat; create a .anme from this .svg ... of course you'll need to figure out the .anme file format (which has a nasty habit of changing between releases)
Post Reply