here is the script
Set the playback property of the animation in the atlas to Once Forward
playback
Once Forward
EDIT:
Thanks it worked