Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Bone Data

    SDK Help
    0
    2
    160
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post