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:
Cinema 4D Version: 12
Language(s) : C++ ;
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)));
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).