add lua interface for animation