sanchez Posted February 9, 2006 Share Posted February 9, 2006 Hi All. I have one question about HDK. I have some objects of OP_Node class in my code and i know that objects are "bones". How can i get a value of bonelength parameter and value of translate parameter of they? Quote Link to comment Share on other sites More sharing options...
Guest xionmark Posted February 9, 2006 Share Posted February 9, 2006 Hi All.I have one question about HDK. I have some objects of OP_Node class in my code and i know that objects are "bones". How can i get a value of bonelength parameter and value of translate parameter of they? 24559[/snapback] Hi OP_Node is derived from OP_Parameters which has all the various "eval" methods to get values from GUI parameters. Check out some of the HDK examples, you'll find some good tidbits in there. Have fun! --Mark Quote Link to comment Share on other sites More sharing options...
sibarrick Posted February 9, 2006 Share Posted February 9, 2006 (edited) This is quite easy You need a pointer to the node you are interested in and then just call evalFloat on the channel OP_Node *boneObj //you need to make sure boneObj is pointing at something, but it sounds //like you have this already //then float foo = boneObj->evalFloat("length",0,time); xionmark beat me to it.... Edited February 9, 2006 by sibarrick Quote Link to comment Share on other sites More sharing options...
Guest xionmark Posted February 9, 2006 Share Posted February 9, 2006 xionmark beat me to it.... 24567[/snapback] Yes, but I neglected to provide an example ... oops. Quote Link to comment Share on other sites More sharing options...
sanchez Posted February 10, 2006 Author Share Posted February 10, 2006 Thanx for replies I`ve found the solution in the HDK documentation already. Thanx anyway. 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.