Notifications
Clear all

[Closed] Using ProgressStart.. have to confirm twice to actually cancel

I’m in max 2012. Trying to use progressStart/progressUpdate/getProgressCancel/ProgressEnd
After hitting cancel or escape, it makes me hit yes twice OR even sometimes thrice to confirm that I do actually want to stop. I’ve cut the script right down to pretty much just the progressbar functionality and I’m still having the issue. Anyone know a way to get it to behave?

Cheers,
Cg.

(
 	animationrange = interval 0f 1000f
 	progressStart "Uh huh"
 	for i = 1 to 1000 do
 	(
 		slidertime = i
 		progressUpdate (i/10.0)
 		if getprogresscancel() do exit
 	)
 	progressEnd()
 )
2 Replies

[left]basically you are actually doing the cancel check twice, once with progressUpdate and once with getProgressCancel()
[/left]

Doh, I should read the help file properly.

Thanks Joel,

Cg.