Jump to content

pre-render raise ValueError


com48

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...