Thanks again for trying to help. I combed over the python docs for handling exceptions as well as the houdini docs for hou.InterruptableOperation again.
From my understanding this should work:
def doit():
aborted = False
with hou.InterruptableOperation(“doing stuff”, open_interrupt_dialog=True) as operation:
ret = hou.hscript(“viewwrite -f 1 40 Build_gg.panetab1.world.persp1 c

test/foo.\$F.jpg”)
try:
operation.updateProgress()
except hou.OperationInterrupted:
aborted = True
if aborted == True:
print “aborted!”
else:
print “continuing on…”
However when I run that function and hit Escape in the middle of the flipbook, I sometimes get “continuing on…” and sometimes get “aborted!”. If I run the function and let the flipbook complete on it's own I get “continuing on…” every time. So unless something is wrong with my code- it seems that either the hou.InterruptableOperation class is bugged, or there is something weird about how the interrupting of the hscript function is handled through the python hou.hscript() call.
I keep going over and over the details but I just can't figure out what I may be doing wrong. :cry: