Jump to content

Check parameter existence


Recommended Posts

Hi guys,

how can i check if a parameter (to be precise i have to check if an object is allowed to motionblur) exist for an object? This because if i just use the eval commands (evalInt, evalString, etc) on an OP_Node and the parameter doesn't exist (i.e. is a spare parameter to be added from the Render properties), Houdini return an error. Is there a way to check if the parameter is available?

Link to comment
Share on other sites

Guest xionmark

Hi,

I think you can do something like:

From your instance of OP_Node, call:

virtual PRM_ParmList * getParmList ()

From that ParmList, you can then iterate through each parameter and query it's state/members.

Hope that helps,

Mark

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