

def tick(self):
    elapsed = (time.time() - self.startTime)
    p = (elapsed / p.animationTime)
    if (p > 1.0):
        p = 1.0
    newValue = (self.startValue + ((self.targetValue - self.startValue) * p))
    self.obj.setProperty(self.propertyName, newValue)
    if (p == 1.0):
        self.timer.callback = None
        return False

dataset/ETHPy150Open RobotLocomotion/director/src/python/director/propertyanimation.py AnimatePropertyValue.tick/VarMisuse@29/31 `self`->`p`