delay function
This commit is contained in:
parent
4e1a52e006
commit
9402055117
1 changed files with 9 additions and 0 deletions
|
@ -53,6 +53,15 @@ def easeLinear(t, b, c, d):
|
||||||
t=float(t)/d
|
t=float(t)/d
|
||||||
return t*c+b
|
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:
|
class Rendertask:
|
||||||
def __init__(self, infile, sequence, parameters={}, outfile=None, workdir='.'):
|
def __init__(self, infile, sequence, parameters={}, outfile=None, workdir='.'):
|
||||||
self.infile = infile
|
self.infile = infile
|
||||||
|
|
Loading…
Add table
Reference in a new issue