This group of functions lets you display a progress bar for operations that might be time consuming, similar to the progress bar that 3ds Max uses for IK, Preview Rendering, and Reduce Key computations.
Initially displays the progress bar with the caption given.
Updates the bar display to show the given percentage complete (in the range 0-100). This function also checks to see if the user has clicked the Cancel button in the progress bar, and returns true if the computation must continue and false if the user has requested a cancel. You can also call getProgressCancel() (described below) to check the cancel status, which is a low overhead function and might be called more frequently than progressUpdate() .
Signals the end of the operation and removes the progress bar display.
A low-overhead function that checks whether the user has canceled the operation using the Cancel button in the progress bar. You might want to call this function frequently within deep loops in your code to reduce cancel latency for the user because you must only call progressUpdate() as needed to show significant progress bar changes to keep overhead low. The getProgressCancel() function as well as progressUpdate() displays a confirmation dialog if the user hits the cancel button and returns the cancel status from that confirmation. Unlike progressUpdate() , this function returns true if the user has made a confirmed cancel request and false otherwise.
Sets or clears the Cancel flag for the progress bar. By passing a value of true , the Cancel flag is set and will be detected by progressUpdate() and getProgressCancel() . By passing a value of false , the Cancel flag is cleared if set.
The following 3ds Max system global variable is associated with the Progress Bar display:
Lets you get and set a Boolean value defining whether ESC key interrupt detection is on or off. Setting enableEscape to false turns ESC key interrupt detection off, setting it to true turns it on again. This variable is useful when used in conjunction with a Progress Bar. You can set enableEscape to false when you do not want the user to interrupt a script running a long computation and you have set up a progress bar with its own Cancel button.