MotionBuilder Forum
Welcome to Autodesk’s MotionBuilder Forums. Share your knowledge, ask questions, and explore popular MotionBuilder topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I return re-targeting definitions as FBProperty, in c++?

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
368 Views, 0 Replies

How can I return re-targeting definitions as FBProperty, in c++?

I am trying to get character settings in c++, as I would in Python.

 

In python, I can get my character (myBiped), and print the connection of the LeftUpLeg joint like this:

 

leg = myBiped.PropertyList.Find('LeftUpLegLink')

print leg[0].Name

 

This will print the bone that is linked to the LeftUpLeg of the character in the character definition.

 

How can i do this in c++?

 

I have:

 

FBPropertyListCharacter chars = ((FBScene*)mSystem.Scene)->Characters;
FBProperty* prop = chars[0]->PropertyList.Find("LeftUpLegLink");

FBString data;

prop->GetData(data,sizeof(FBString)); 

FBTrace(data);

 

This helpfully prints a '?'.

 

How can I return the connected bone in c++?

 

Thanks!

Tags (3)
Labels (1)
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report