It's not really designed for the animation code to be dynamically changed on the fly, but I've hacked together this feature in my fork.