Home Technical Talk

MAXSCRIPT CompleteRedraw question

polycounter lvl 15
Offline / Send Message
leslievdb polycounter lvl 15
hey guys i was wondering if someone can tell me if CompleteRedraw() in max stops a script until the redraw is complete or let's it continue the script before the entire redraw is complete?

I'm having some issues with my grabviewport script and i think it's because of the script being faster than the viewportupdating on some systems.

tnx

Replies

  • monster
    Options
    Offline / Send Message
    monster polycounter
    I want to say yes because when I run the first script below, the viewport is grabbed before the box is created. But in the second script the box is created, moved, and then viewport grabbed.

    I usually use ForceCompleteRedraw() because it can do disabled view ports as well.
    (
        b = box()
        move b [0,10,0]
        grab_bmp = gw.getViewportDib()
        display grab_bmp
    )
    
    (
        b = box()
        move b [0,10,0]
        forcecompleteRedraw doDisabled:true
        grab_bmp = gw.getViewportDib()
        display grab_bmp
    )
    
  • leslievdb
    Options
    Offline / Send Message
    leslievdb polycounter lvl 15
    yeah great way to test this

    but wouldn't it start updating before all previous operations are complete if it's a bigger operation?

    I'm going to test this with an array of objects maybe i can push my laptop that way to trigger such a scenario

    tnx for the input ^^
Sign In or Register to comment.