From ec30d1f85bb8da971b97306f8a4f2a3c89d6196a Mon Sep 17 00:00:00 2001 From: Kuba Winnicki Date: Thu, 21 Feb 2019 21:06:50 +0100 Subject: [PATCH] Remain silent if cant create RS ROP --- hhacks.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hhacks.py b/hhacks.py index 808f932..65fd407 100644 --- a/hhacks.py +++ b/hhacks.py @@ -34,7 +34,10 @@ def rop_redshift(): out = hou.node('/out') rop = out.node('Redshift_ROP1') if not rop: - rop = out.createNode('Redshift_ROP') + try: + rop = out.createNode('Redshift_ROP') + except: + return None, None rop.moveToGoodPosition() rop.parm("ProgressiveRenderingEnabled").set(True) rop.parm('PrimaryGIEngine').set('RS_GIENGINE_BRUTE_FORCE')