Notifications
Clear all

[Closed] Max2011,Not ReDraw view when execute MaxScript?

Max2011,Not ReDraw view when execute MaxScript?
thanks

1 Reply

Try using the redraw context.

with redraw off ()

From the maxscript help:

redraw Context [left]While the expression within the redraw <boolean> context is being evaluated, screen redraws are completely disabled, and the modify and motion panels are suspended.
[/left]
[left]This is basically an exception safe form of
[/left]
[left]disableSceneRedraw(); < expr >; enableSceneRedraw()
[/left]
[left]That is, if an exception is thrown in < expr >, the scene redraws will be automatically re-enabled as part of the exception handling. The modify and motion panels are suspended if they are the currently active command panel. If the expression sets the current command panel to either modify or motion, the command panel will not be suspended at that point.
-Eric
[/left]