To make life a little easier for myself, I wrote a small snippet of Python which retrieves all images from a directory, taking an animation speed and returning a tuple (stored in tools.py):
Code: Select all
import os
def animList(path,speed):
alist = []
for f in os.listdir(path): alist = alist+[f,speed]
return tuple(alist)
Code: Select all
init:
$ import tools
$ pw = Character(u"Phoenix",color="#ffffff")
image pw point talk = Animation(*tools.animList("img/phoenix/pointing-t",0.16))
Any assistance very much appreciated. Thanks!