new to Hdk - How to get Object Matrix?

   5425   5   0
User Avatar
Member
7 posts
Joined: Feb. 2006
Offline
Hi,
I am a programmer who until now has been developing plugins for Maya, and now I turn to houdini hdk.
My first project is to implement a houdini spine with slerp interpolation with 720 degrees of freedon (I have already implemented in maya, you can see it here SlerpSpine: http://alanstanzione.netsons.org/AlanStanzione-ShowReel09.mov [alanstanzione.netsons.org] ).
Yet I was able to interpolate two quaternions using a chop network and a chop VOP whit some other nodes. But i want to create a single nodel like the houdini InverseIk solver.
I looked at the hdk doc , but I found it very poor. But mostly I have not found a documentation of the various classes of development kits like doxygen or another system. If you look the maya api doc it's much more complete.
Now I'm studying the two examples CHOP_Stair and CHOP_Glove. Now my first question is this:
You can create an input parameter that specifies the path of an object, such as inverseIk where you pass the path of the bones. If this is possible how do I retrieve the transofrmation matrix of that object? Which class should I use?

Thx
Alan
User Avatar
Member
12459 posts
Joined: July 2005
Online
Hi there,

You can find some unofficial resources for the HDK over here:
http://odforce.net/wiki/index.php/HoudiniDevelopmentKit [odforce.net]
…including Doxygen pages. I still need to get hold of, (or output myself) Houdini 10 Doxygen pages.
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
User Avatar
Member
7 posts
Joined: Feb. 2006
Offline
jason_iversen
Hi there,

You can find some unofficial resources for the HDK over here:
http://odforce.net/wiki/index.php/HoudiniDevelopmentKit [odforce.net]
…including Doxygen pages. I still need to get hold of, (or output myself) Houdini 10 Doxygen pages.

hi jason,
thx for the link, but this is a simple documentation created automatically with doxygen without a minimal explanation of member's classes.
Sidefx really has never published a document of this kind?
User Avatar
Member
398 posts
Joined: July 2005
Offline
Hi Alan,

It's OBJ_Node class, there is a bunch of methods defined in OBJ_Node.h
f = conserve . diffuse . advect . add

fx td @ the mill
User Avatar
Member
7715 posts
Joined: July 2005
Offline
iaiotom
You can create an input parameter that specifies the path of an object, such as inverseIk where you pass the path of the bones. If this is possible how do I retrieve the transofrmation matrix of that object? Which class should I use?

Untested code

UT_String path;
// … set path from parm
OBJ_Node *obj = CAST_OBJNODE(findNode(path));
// … check if obj is NULL … eg. if path is an invalid path
UT_DMatrix4 xform;
obj->getLocalToWorldTransform(context, xform);
User Avatar
Member
7 posts
Joined: Feb. 2006
Offline
Thank you edward and hoknamahn
  • Quick Links