Joey Kowalewicz Posted September 16, 2012 Share Posted September 16, 2012 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 Quote Link to comment Share on other sites More sharing options...
rdg Posted September 16, 2012 Share Posted September 16, 2012 that needs to have a pause in it halfway through the script before it finishes the rest. Why's that? Quote Link to comment Share on other sites More sharing options...
Joey Kowalewicz Posted September 17, 2012 Author Share Posted September 17, 2012 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 Quote Link to comment Share on other sites More sharing options...
rdg Posted September 17, 2012 Share Posted September 17, 2012 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.