Notifications
Clear all

[Closed] Turn off UI redraw

I have a script that constantly redraws the 3dsmax UI, (modifier panel,) as it runs through its loop. I would like to turn this off, but have not yet found the command to do so, if it exists.

Any help?

8 Replies

I think you’re after suspendEditing (remember to call resumeEditing afterwards).

Cheers,

Drea

Hmmmm. I tried suspendEditing, but it then prevents my script from running as it performs a bunch of operations in the stack.

Thanks, though.

did u try switch to create mode before running the script. I think that should work if your modifier panel is redrawing a lot.

max create mode
 JHN
max create mode
with redraw off
(
   your code

)

Does that work?

-Johan

I’ll give it a shot when I get home from work.

I kicked off the script last night about 6:30pm. according to the timestamp it looks like it took about 8-9 hours to run.

Ok, I ended up overhauling my script.

I have a large number of edgeloops I was attempting to scale down. I was originally doing this by selecting the verts, applying an xform modifier, scaling the gizmo, collapsing the stack, selecting the verts in the next edgeloop, and so on. This required the modifier panel to be open, and thus, was slow.

Instead, I now just directly translate each vert in an edgeloop through PolyOps.

Even with redraws on, it is now blazingly fast.

Thanks.

Hey I didnt have the time to read through all posts in here but maybe this is what you want:

http://forums.cgsociety.org/showthread.php?f=98&t=794715

Hey, that looks pretty interesting. I will give it a shot. Thanks!