Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > SDK Help
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

CTrack insert rotation key from quaternion

 Post Reply Post Reply
Author
Message
ToBSn View Drop Down
Member
Member
Avatar

Joined: 2011 May 17
Location: Germany
Online Status: Offline
Posts: 3
Post Options Post Options   Quote ToBSn Quote  Post ReplyReply Direct Link To This Post Topic: CTrack insert rotation key from quaternion
    Posted: 2011 May 26 at 12:25pm

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


Back to Top
kuroyume0161 View Drop Down
Member
Member
Avatar

Joined: 2002 Oct 29
Location: United States
Online Status: Offline
Posts: 3665
Post Options Post Options   Quote kuroyume0161 Quote  Post ReplyReply Direct Link To This Post Posted: 2011 May 26 at 12:34pm
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).
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.094 seconds.