HDK pCaptData example

   2028   3   1
User Avatar
Member
18 posts
Joined: Jan. 2009
Offline
I would like to modify the cregion capture transform for an existing bone capture from within a custom SOP using the HDK. I think I understand the point (region#, weight) pairs attribute and the detail attribute for the capture frame, but the properties with the cregion names and the transform information are more elusive. GEO_Detail provides a number of promising functions, but they seem incomplete.

Can some please provide me some code snippets for the following:
1) Determine the number of cregions in the capture.
2) Map a region index to a cregion path
3) Get access to the 20-byte pCaptData record for a given cregion, for both read and write.
User Avatar
Member
18 posts
Joined: Jan. 2009
Offline
Correction, 20-float pCaptData record, not byte.
User Avatar
Member
402 posts
Joined: June 2014
Offline
Hi!

I don't know if you've got other reasons to move things into the hdk, but you can achieve all the above points using the capture attribute pack/unpack SOP nodes. Could save you a lot of compiling fun and games
Henry Dean
User Avatar
Member
18 posts
Joined: Jan. 2009
Offline
Good suggestion, and I may do unpack/pack as an interim step. I'd be adding this to an existing custom SOP, and would like to avoid the need for extra SOPs before and after to keep things tight.
  • Quick Links