PDA

View Full Version : Progress Bar for "How to" script


dellis
10-21-2009, 03:37 PM
Hey all,

I think this might be an easy one...but is there a way to put a progress bar in this script to show the progress of the rendering?

rollout image_button_test "Image Button"

(

button theButton "Press To Render!" width:300 height:169

on theButton pressed do

(

theBmp = render outputsize:[300,169] vfb:off

theButton.images = #(theBmp, undefined, 1,1,1,1,1 )

)

)

createDialog image_button_test 310 179

Its a neat little script...the progress bar would help it..and i would love to see how its implemented. Thanks alot guys!

PEN
10-21-2009, 03:51 PM
Not really as you need to be able to track the progress, this usually done inside of a for loop.

Bobo
10-21-2009, 05:48 PM
The render() method does not provide good feedback of the progress. It has an option to show a progress at the bottom of Max, but this also hides all rollouts as a side effect which is probably not what you want to see...

So in short it can be done in the SDK (see the Exposure preview windows), but not in out-of-the-box MAXScript.

dellis
10-23-2009, 06:52 PM
Thanks for the response guys!

CGTalk Moderation
10-23-2009, 06:52 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.