DoctorBuzz Posted March 28, 2009 Share Posted March 28, 2009 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? Quote Link to comment Share on other sites More sharing options...
Guest xionmark Posted March 28, 2009 Share Posted March 28, 2009 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 Quote Link to comment Share on other sites More sharing options...
edward Posted March 28, 2009 Share Posted March 28, 2009 Use the OP_Parameters::getParameterOrProperty...() methods. Quote Link to comment Share on other sites More sharing options...
DoctorBuzz Posted March 28, 2009 Author Share Posted March 28, 2009 Thank you Mark, thank you Edward i'll try your suggestions. 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.