THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/03/2007 at 02:12, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R9
Platform: Windows ;
Language(s) : C++ ;
---------
I have some difficulties accessing the data of objects.
In my case bones.
I need the rotation and translation values from the fixation.
What I have found so far is
BaseContainer bonedata = P406Exporter.doc->GetFirstObject()->GetData();
GeData bonepos = bonedata.GetData(BONEOBJECT_FIXPOSITION);
GeData bonerot = bonedata.GetData(BONEOBJECT_FIXROTATION);
GeData bFixed = bonedata.GetContainer(BONEOBJECT_FIXED);
Matrix mat_rot = HPBToMatrix(bonerot.GetVector());
Matrix mat_pos = MatrixMove(bonepos.GetVector());
But the return values are always Null;
What am I doing wrong, and/or where could I find an example how to do it the right way?
Tnx for any help