Writing the animator file.