delay function

This commit is contained in:
MaZderMind 2015-04-29 14:12:36 +02:00
parent 4e1a52e006
commit 9402055117

View file

@ -53,6 +53,15 @@ def easeLinear(t, b, c, d):
t=float(t)/d
return t*c+b
def easeDelay(easer, delay, t, b, c, d):
if t < delay:
return b
if t - delay > d:
return b+c
return easer(t - delay, b, c, d)
class Rendertask:
def __init__(self, infile, sequence, parameters={}, outfile=None, workdir='.'):
self.infile = infile