Jump to content

Get Value Of Parameter

Recommended Posts

Guest xionmark
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?



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!


Link to comment
Share on other sites

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


float foo = boneObj->evalFloat("length",0,time);

xionmark beat me to it....

Edited by sibarrick
Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...