sibarrick Posted August 17, 2005 Share Posted August 17, 2005 Hi all, How do you go about reading data from a node that isn't the one you currently are, if you see what I mean? Ie say I want to read the transform info from /obj/foo. I think it's something along the lines of int test; UT_Matrix4 mat; OBJ_Node *node; ***do something here that makes node be the one I'm interested in*** test = node->getWorldTransform(mat,context); What I can't see is how to make node relate to the one already in the scene. Quote Link to comment Share on other sites More sharing options...
edward Posted August 17, 2005 Share Posted August 17, 2005 Well, wouldn't you have a node path? eg. UT_String node_path( "/obj/model"); OP_Node *node; node = OPgetDirector()->findNode( node_path ); // or if node_path might be relative: OP_Node *cwd = OPgetDirector()->getCwd(); node = cwd->findNode( node_path ); Quote Link to comment Share on other sites More sharing options...
sibarrick Posted August 17, 2005 Author Share Posted August 17, 2005 Well, wouldn't you have a node path? eg. UT_String node_path( "/obj/model"); OP_Node *node; node = OPgetDirector()->findNode( node_path ); // or if node_path might be relative: OP_Node *cwd = OPgetDirector()->getCwd(); node = cwd->findNode( node_path ); 20607[/snapback] Well I guess I would if I knew what I was doing Haven't dealt with OP_Director methods yet. Cheers. 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.