[Closed] wait for screen redraw / viewport grabbing
Hi all,
Is there a callback function in MAXScript that tells me if viewport redraw is finished ? I have started writing a script that batch processes MAX files to grab the perspective view and save that out to a file. The only problem is, MAXScript executes faster than the viewport is redrawn so my files are all grey. I would like to know how I can make it wait for the screen redraw.
Or have you got other ideas which could help me program this thingie ?
Look in the help file under the group “Change Handlers and Callbacks” there is a section called “viewport redraw callback mechanism”. It looks exactly like what you need!
Chris Johnson
Hey Chris,
thank you for your hint. I actually found the solution in another screen grabber script. There is the function “completeRedraw ()” that has to be invoked. It makes sure that the screen is redrawn before the script continues. Now it works !