|
Hi, I have a Parent/Child constraint which has several models assigned as Sources. I need to be able to access the Offset values and weights for each of the sources in the constraint. Whats the best way to do that?
Thanks
|
|
|
|
If you have a handle to the constraint, you can access the weights by searching on the propertylist for a prop with the name “Weight”:
double weight = 0.0; HFBProperty weightProp = constraint->PropertyList.Find( "Weight" ) if ( weightProp )
{
weightProp->GetValue( &weight, sizeof( double ) )
}
In fact there are a lot of undocumented properties about. Knowing this will open up access to almost everything in MB.
A good way to find properties on items is to either save out an ascii version of the fbx file and browse the object properties section, or to simply print the contents of the propertylist out.
|
|
|