Jump to content

Bone Capture Region Index


Recommended Posts

Greetings!

How do you gain access to the table that stores all of the bones with their path information, name and index number?

I am aware of the GEO_Detail function, "getCaptureRegionIndex(Const UT_String &regionName)". So how would I get a list of all the bone names? Would I have to do a search through the given capture root path and pick out all the bones myself?

Thanks in advance!

Link to comment
Share on other sites

I got this reply from Jenney at Sesi. The solution works like a charm!

The easiest way is to make use of the GEO_CaptureData helper class. Untested code:

GEO_CaptureData capture_data;

UT_String path;

getFullPath(path);

capture_data.initialize(path, 0.0f /* capture frame */);

capture_data.transferFromGdp(src_gdp, NULL /* pt_group */);

Now you can use GEO_CaptureData's getNumRegions() and regionPath() path methods. I think the path's obtained this way are relative to the capture root path.

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.

Guest
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...