Hey all. I've been playing with the "grabviewport" script the Xoliul shader guys have on their site and I came across a problem I figured I'd try and fix, only I'm having no luck finding an answer to a maxscript issue. In their grabviewport script, it calls ResizeViewPort (a function of theirs that sets the viewport size…
I don't know anything about max script but something like: timevalue = getcurrenttime();if (timevalue == timevalue + 1) {return timevalue;} sounds about right...
You can pause script execution in maxScript with "sleep <time_in_seconds>". I don't know whether that will allow the viewport to catch up while it's sleeping though. Edit: Oops, looks like Nysuatro beat me to it :)
Yeah, I was hoping for a yield (pause script but allow others to continue). So does anyone know if there is a callback when the viewport has finally settled down exposure wise? Or some way to know if the exposure has finished changing?