Hello:
I am executing a USD ROP node by:
rop.parm("execute").pressButton()
But, I want to know if the process was interrupted by the user in the UI. Right now I check the rop.errors(), but is there any other way. As in, a python function to call that will have a return code/raise exception I can examine after the execute? Just wondering what the best practice would be, thank you!
Capturing ROP node interrupt with python
344 1 1- blaven
- Member
- 17 posts
- Joined: 3月 2021
- Offline
- Jonathan de Blok
- Member
- 256 posts
- Joined: 7月 2013
- Offline
if all else fails you could use a post frame script that sets an extra parm on the ropnode to the last frame number that is rendered. Then a post render script that emits some exception event you could catch elsewhere if the last rendered frame value is less then the end of the frame range. #FridaySolutions
More code, less clicks.
-
- Quick Links