Rhino.Sleep for v6?

Hi, long time since I’ve been here… been mostly still using V5 because I am all set up in there with a perfect workflow which includes Neon (which is no longer available), but I’m trying to use V6 some more, including using just the rendered viewport which is pretty great on its own.

But Rhino.Sleep no longer works in V6? I’m trying to use some animation scripts and screen capturing really large views that take more than an instant, so I need a pause at every view change in my script. Help?

Hi Heath - seems to work here

	Rhino.Sleep(3000)
	Rhino.Command("Line")

Can you post or send me the code that does not work?

-Pascal

Thanks Pascal. Your line of code does not work here. I have the latest update.sleep

Ah - sorry, that was meant to be run inside a RunScript:

! _-Runscript (
Rhino.Sleep 3000 
Rhino.Command "Line"
)

-Pascal

Ok, weird. I decided to try it alone just to test… and it failed. But it works in a script like this. Sorry for the confusion. I thought it would run on it’s own. I guess I overthought it! LOL Thanks so much, you’re the best.

-ViewCaptureToFile
“C:\Users\Heath\Desktop\animation_raw\000.jpg”
Enter
ViewNextFrame
_-Runscript (Rhino.Sleep 7000)
-ViewCaptureToFile
“C:\Users\Heath\Desktop\animation_raw\001.jpg”
Enter
ViewNextFrame

Hi Heath - so you’re all set then?

-Pascal

All set! Thanks a bunch for helping me figure out where I was being dumb. lol

Hope everyone up there at McNeel is doing well and is safe.

Thanks, so far so good - all working from home… Likewise, I hope all’s well with you.

-Pascal

1 Like

Great here in Ogden, UT, where I’ve been for almost three years. :slight_smile:

No kidding! Got tired of LA?

1 Like

Very! Needed a lifestyle change. LA was fun but I was completely over it.