Jump to content
niwi

Animation in Script

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...