Jump to content

How can you trigger a render's execute command via opparm?


Kardonn

Recommended Posts

I've got a shader setup here that pulls textures based on .json lists and need to be able to swap that .json file during command line renders in order to generate preview images for material libraries. Problem is that the pre-render script [opparm /shop/shader json "S:/Lib/foo.json"] works, but that parm in a Houdini session runs a callback script when you hit enter after plugging in a .json path. When you change the .json path via opparm though...it doesn't get triggered and nothing in the shader actually updates.

There's an "update" button parm on the shader that runs the same callback script, I just don't know how to 'execute' that button from the pre-render script section of the ROP.

Anyone know how you do that?

Link to comment
Share on other sites

Ignore me...another problem solved by the time tested approach called "read the f*cking manual".

Solution for anyone searching this thread for answers one day in the future:

opparm -C [node] [parm] [value]

The -C triggers any callbacks in addition to setting the parameter value.

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...