full path

   3488   5   0
User Avatar
Member
282 posts
Joined: Jan. 2006
Offline
Hi! How can I convert relpath to full path by hdk?
Thanks
Houdini is great! O'right?
User Avatar
Staff
1450 posts
Joined: July 2005
Offline
try OP_Node::getFullPath()

Edit:
first, you probably want OP_Node::findNode() and then getFullPath()
Edited by - Sept. 26, 2008 10:19:09
User Avatar
Member
282 posts
Joined: Jan. 2006
Offline
Hi, rafal. Yep, I know this stuff. But it doesn't work in my case. Why? I don't know. I'm trying to do this in such way:

UT_String obj, fullObj;
import(currobj, obj, 0);
OP_Node *currOp;
currOp->findNode(obj);
currOp->getFullPath(fullObj);
Houdini is great! O'right?
User Avatar
Staff
1450 posts
Joined: July 2005
Offline
hmm.. that should work. The only thing that may fail here is findNode() and one reason may be an invalid relative path. You can use UT_String::getRelativePath() to experiment how the relative path should look like, and see if such paths work in findNode().
User Avatar
Member
282 posts
Joined: Jan. 2006
Offline
Do you know why there are two paths in getRelativePath()?
If the src path is a relative, then what is the second(destination) path? It is a pointer too.
Houdini is great! O'right?
User Avatar
Member
7753 posts
Joined: July 2005
Offline
Wish
Hi, rafal. Yep, I know this stuff. But it doesn't work in my case. Why? I don't know. I'm trying to do this in such way:

UT_String obj, fullObj;
import(currobj, obj, 0);
OP_Node *currOp;
currOp->findNode(obj);
currOp->getFullPath(fullObj);

That should be:
OP_Node *obj_node;
obj_node = currOp->findNode(obj);
obj_node->getFullPath(fullObj);
  • Quick Links