CTrack insert rotation key from quaternion
-
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 -
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).