Bone Data
-
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
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/03/2007 at 02:24, xxxxxxxx wrote:
Nevermind... 1/2 of it was my mistake the other 1/2 was confusion about the GetData GetCustomDataType functions
BaseContainer* bonedata = obj->GetDataInstance(); GeData bonepos = bonedata->GetData(BONEOBJECT_FIXPOSITION); GeData bonerot = bonedata->GetData(BONEOBJECT_FIXROTATION);
This way it works (I tried to read bone information from a poly object, so it was my mistake)
But I dont get why there are two functions GetData & GetCustomDataType