[Solved] [ROP] Can a pre-render script prevent the ROP to render?

   1656   4   1
User Avatar
Member
44 posts
Joined: July 2017
Offline
Hello!

We are adding some pre-script/post script render in the Alembic ROP in Python.
if the pre-render script fails, the ROP shouldn't be able to render and export the abc file.

Is there a way to do this?

Thanks a lot.
Edited by Francois Devic - Aug. 30, 2018 14:15:17
User Avatar
Member
731 posts
Joined: Dec. 2006
Offline
Can you rephrase this? Not sure what you are trying to do….
Sean Lewkiw
CG Supervisor
Machine FX - Cinesite MTL
User Avatar
Staff
5158 posts
Joined: July 2005
Offline
If the pre-render script adds an error, the ROP node won't continue executing. Is that what you're looking for?
User Avatar
Member
44 posts
Joined: July 2017
Offline
Sorry for the late reply!

What I meant is :
let say that in the pre_render script, there is a message box and if the user say no, the Render shouldn't be done.
How can I manage to do that?
Should I launch an exception or something like that?

Thanks!
User Avatar
Member
44 posts
Joined: July 2017
Offline
Thanks for your help!

doing :
raise hou.OperationInterrupted
prevents the export it self to be done.

But, the post_export is done
How could I test if the the export was done correctly?
  • Quick Links