How do I make it so when the user hits the ESC key the operation is completely stopped and canceled....
I've been trying to trouble shoot this and the help file is not really explaining it well enough in a way that is making sense.
Thanks
John
startFrame = animationRange.start
endFrame = animationRange.end
frameCount = endFrame - startFrame
step = 1
prgCount = 0
progressStart "Go:"
for t = startFrame to endFrame by step do
(
if keyboard.escPressed then
exit with (escapeEnable = false; progressEnd(); format "Canceled\n")
else (
sliderTime = t
progPerct = (100.0 * prgCount * step / frameCount) as integer --//ProgressValue
progressUpdate progPerct
prgCount += 1
)
)
progressEnd()
By JokerMartini · 2011-10-19
Anubis · 2011-10-20
miauu · 2011-10-19