Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Set Rotation/Scale keys at -1 Frame

    SDK Help
    0
    3
    261
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post