Jump to content

Delay Script Problems


Joey Kowalewicz

Recommended Posts

Hello everyone, I am writing a python script that needs to have a pause in it halfway through the script before it finishes the rest. I tried to use time.sleep(secs) but that doesn't seem to run the script before the sleep and then the part afterwards. Instead it waits the allotted time and runs the entire script at once. Does any one have any ideas? Thanks!

Joey

Link to comment
Share on other sites

Why's that?

I am created a rubiks cube game inside houdini and want to try and implement some sort of turning animation. Right now it just jumps to the correct position when I click on the controls, but I want to actually see it turn. Looking into it more, the time.sleep(t) wont work. Do you have any other suggestions for how I could achieve this effect?

Thanks

Joey

Link to comment
Share on other sites

you have any other suggestions for how I could achieve this effect?

Set keyframes?

Don't jump to the correct position but interpolate based on the current frame?

I'm not sure if using python's sleep as an animation tool will scale as expected.

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

Guest
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...