How to register if a user interrupts caching in python?

   549   0   1
User Avatar
Member
27 posts
Joined: Aug. 2019
Offline
I have a python script that runs the pressButton function on a usd rop in order to cache out a shot usd.

I'm now trying to figure out how to capture if the user interrupts/aborts the cooking process so as to stop the rest of my code from executing.

Does anyone perhaps have a simple example of how I would go about doing this?
  • Quick Links