com48 Posted November 22, 2010 Share Posted November 22, 2010 Hey guys, I'm trying to stop my rendering of a rop. i'm calling a python module on disk and no matter what I try it will not influence the render of the output. raise hou.ValueError() sys.exit(1) return 1 nothing seems to influence the rop. is it possible to stop a rop from rendering with python or hscript from the pre-render field? or is there a better way of doing this? greetings, Lars Quote Link to comment Share on other sites More sharing options...
hopbin9 Posted November 22, 2010 Share Posted November 22, 2010 You can use a Switch node, and put a Null as Input1, and the Mantra node as Input2. Then use hScript or Python in the Switch to select which input to use. Quote Link to comment Share on other sites More sharing options...
com48 Posted November 23, 2010 Author Share Posted November 23, 2010 so it seems that the pre-render script and the pre-frame need to raise a error to stop a node from rendering. raising a error on the pre-render will stop the node from rendering the next node in the chain. raising a error on the pre-frame will stop the node from rendering the current node. hope it helps someone else. greetings, Lars Quote Link to comment Share on other sites More sharing options...
hopbin9 Posted November 23, 2010 Share Posted November 23, 2010 How do you raise an error in a script? That's something I've never done. Quote Link to comment Share on other sites More sharing options...
com48 Posted November 23, 2010 Author Share Posted November 23, 2010 How do you raise an error in a script? That's something I've never done. set the pre-frame script to python and type: raise Exception("STOP!") #Hammer time Stops the node. adding it to the pre-render will stop the next node from rendering but not the current node. SESI informed me today the fix the bug i reported yesterday so todays build should have some of this weirdness solved. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.