doc Posted July 12, 2007 Share Posted July 12, 2007 Hi, My Sop(sopA) has a string field that takes a path to a different sop(sopB). I use this path to query different parameters on sopB and use these values in sopA. In order to get at these values I create a string with a "ch()" command and run it like this: OP_CommandManager *mgr = OPgetDirector()->getCommandManager(); mgr->execute( my_cmd.c_str(), now, &output); This works great. The problem I'm having is that when a parameter value on sopB changes I need sopA to recook. Is there a way to do this? Many thanks L Quote Link to comment Share on other sites More sharing options...
edward Posted July 13, 2007 Share Posted July 13, 2007 Sorry, not much time to reply. But in short, you want to do something like: sopB->addExtraInput(sopA, OP_INTEREST_PARM) where sopB and sopA are the corresponding OP_Node pointers. Quote Link to comment Share on other sites More sharing options...
doc Posted July 17, 2007 Author Share Posted July 17, 2007 HI Ed, thanks for the reply, I know you're busy but I got some follow up questions: How do I go about getting values for sopA and sopB? I'm guessing I can use "this" in place of sopA? And for sopB, is there a function that returns an OP_Node pointer given a string with the path to the node? And if so will a relative path work as well? FYI I've also pinged support with this question Many, Many thanks and much gratitude L Quote Link to comment Share on other sites More sharing options...
doc Posted July 19, 2007 Author Share Posted July 19, 2007 figured it out: OP_Node *thisSop = OPgetDirector()->findNode(sop_path); OP_Node *chSop = OPgetDirector()->findNode(UT_String(path.c_str())); if(chSop!=NULL && thisSop!=NULL){ thisSop->addExtraInput(chSop, OP_INTEREST_DATA); } L 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.