Animation: key values for rotation



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

    On 14/04/2008 at 07:47, xxxxxxxx wrote:

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

    ---------
    Hi,
    I want to set the value for a key on a track (DescLevel(ID_BASEOBJECT_ROTATION, DTYPE_VECTOR, 0), DescLevel(VECTOR_X, DTYPE_REAL,0)));)

    I can't get it to work, do I have to use key->SetValue or key->SetGeData, and how? What is the exact difference between these two anyway?

    When I set a key manually to 90° and print the value to the console using key->GetValue it is ~1.5, which doesnt make sense to me :-)



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

    On 14/04/2008 at 08:05, xxxxxxxx wrote:

    You have to use SetValue(). SetGeData() is for non-real data, a bool for instance. Have a look at the Morphmixer SDK example, especially the CreateKey() function.

    Btw. 1.57~ is PI/2, rotations are in radians internally.

    cheers,
    Matthias



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

    On 15/04/2008 at 00:10, xxxxxxxx wrote:

    Thanks a lot. :-D


Log in to reply