Set Rotation/Scale keys at -1 Frame



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

    On 08/09/2004 at 09:59, xxxxxxxx wrote:

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

    ---------
    Okay, another new and exciting direction in using the SDK. :)

    Basically, I want a default pose for all of the bones in a rig stored as Keyframes at -1 Frame (standard animation practice).

    So far, I have no idea how to set the time to be -1F or how to set each of the keys for rotation and scale. I know that this involves creating a BaseTrack, BaseSequences, and BaseKeys, but that's about it.

    Help, please!

    Thanks,
    Robert



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

    On 08/09/2004 at 10:13, xxxxxxxx wrote:

    Can I get away with, using 'time' where needed in the keyframe setup process:

    BaseTime time = doc->GetTime();
    time.SetNominator(-1.0);

    Robert



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

    On 08/09/2004 at 10:52, xxxxxxxx wrote:

    Nope. Cannot get away with that! ;)

    So, I must set the BaseDocument BaseTime so that it has a minimum time of -2F = BaseTime(-2.0, doc->GetFps()) using doc->SetMinTime(BaseTime(-2.0, doc->GetFps()));

    Then I need to set my time in the keyframe setup process using the same formula.

    That works. Riddle solved.

    Robert


Log in to reply