Animation in Script

User: "Altair Forum User"
Altair Employee
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

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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

    User: "tarrade"
    New Altair Community Member
    Updated by tarrade

    Hi Nils,

    I'm also interested in your solution.

    Could you please further explain your script?

     

    Thanks in advance

     

    Tristan