How to pause script for x seconds while let viewport update; also how to set viewport snapshot size?
Hi all, thanks for any help-
I've built a quick script that rotates around an object "turntable" style, and either renders or takes a viewport grab. I would like for the viewport grab to wait a second or two on each frame, before taking the snapshot, so the Nitrous view can update and look nice and sexy.
I tried "sleep", no luck there, it waits but does not update the view. Is there a simple "time" class/etc that I can access? Or another way of sleeping the script for a few seconds?
Second, I need to set the size of the viewport screenshot, having a lot of trouble finding how to do this. Seems I might have to go fairly low-level to accomplish it, and that's fine, I'll learn it- just can't find what I need yet!