Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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
    • Recent
    • Tags
    • Users
    • Login

    CTrack insert rotation key from quaternion

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 223 Views
    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 Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 26/05/2011 at 12:25, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   12 
      Platform:      
      Language(s) :     C++  ;

      ---------
      Hi,

      how to create keyframes from a quaternion or matrix3x3?
      For euler angles i used following:

      CTrack *trackRotX = CTrack::Alloc(animnode,DescID(DescLevel(ID_BASEOBJECT_REL_ROTATION,DTYPE_VECTOR,0),DescLevel(VECTOR_X,DTYPE_REAL,0)));
      

      Thanks,
      ToBSn

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 26/05/2011 at 12:34, xxxxxxxx wrote:

        This is not possible.  There are no built-in tracks for quaternions or matrices.  You could create your own track plugin (CTrackData) to do it.  Or, if you want to convert the quaternion or matrix into X/Y/Z Rotation tracks, you will need to extract Euler angles using methods given in several books and other sources.  Might also be possible to do the conversion (and animation) using Xpresso nodes (see Matrix2HPB node for the conversion).

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