Getting length of animation from state machine

This worked perfectly, thank you so much!