Animation in Script


Updated by Altair Forum User
Hi everybody
I'm writing a Script right now and am currently running into some issues. I need to animate the model once and after that continue with the rest of my script. How can I make sure to wait for the animation to finish?
Thanks in advance
Nils
I solved my problem, but it seems a bit odd. Before I was using 'pagehandle StartAnimation 1'. Unfortunately the script keeps interpreting the next line before the Animation even started. Now I'm looping through the animation steps and using 'animatorhandle SetCurrentStep $i' to make sure the animation starts and ends before the next line of the script is interpreted.
If there is another way to solve this problem, please tell me, because my solution feels a little bit clunky.
Nils