Animation in Script

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

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

Tagged:

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited May 2018

    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

  • tarrade
    tarrade New Altair Community Member
    edited February 2020

    Hi Nils,

    I'm also interested in your solution.

    Could you please further explain your script?

     

    Thanks in advance

     

    Tristan