doc Posted August 10, 2007 Share Posted August 10, 2007 Hello all, So I'm looking for a PRM TYPE for a parameter that allows the user to browse for a sop(similar to the the "object1" parameter in the object merge sop). Unfortunatly I'm having a bit of trouble finding it in "PRM_Type.h". Can anyone point me in the right direction? Many thanks L Quote Link to comment Share on other sites More sharing options...
sibarrick Posted August 11, 2007 Share Posted August 11, 2007 Here's what I use for picking object paths, looks like it might be easy to swtch over to sops... //path to parent obj PRM_Template(PRM_STRING, PRM_TYPE_DYNAMIC_PATH, 1, &names[9],0, 0, 0, 0, &PRM_SpareData::objPath), Quote Link to comment Share on other sites More sharing options...
edward Posted August 13, 2007 Share Posted August 13, 2007 ie. use &PRM_SpareData::sopPath() instead. It's also useful to use OP_Node::getSOPNode() to look up the path since you can pass true to the second parameter to have extra inputs automatically added. This function will also handle cases where it's an object path instead (and thus use the render/display sops as appropriate). 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.