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

    How to add a keyframe per frame ?

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 446 Views
    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 Offline
      Helper
      last edited by

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

      On 03/07/2006 at 12:51, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9.6 
      Platform:   Windows  ;   
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      Hello everybody.

      To export animations data, I'd want to insert a keyframe per frame in already recorded animation sequences. I've written this little function to try to do that :

      AddAKeyframePerFrame(sequence,fps)  
      {  
          var time;  
          var frame;  
        
          time=sequence->GetT3();  
          var last_frame=time->GetFrame(fps);  
        
          for(frame=0;f<=last_frame;frame++)  
          {  
              time->SetFrame(frame,fps);  
              var key=new(TimeKey);  
              key->SetTime(time);  
              sequence->InsertKey(key);  
          }  
      }
      

      But this doesn't work (I see no keyframes added in the timeline window)...
      Could someone explain me how to correctly manage keyframes ?
      Thank you.

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

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

        On 03/07/2006 at 13:10, xxxxxxxx wrote:

        At the moment it's not possible to allocate new keys with C.O.F.F.E.E. You will need to use C++ for that.

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

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

          On 03/07/2006 at 14:34, xxxxxxxx wrote:

          Ok, I'll try with the C++ SDK.
          Thanks a lot.

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

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

            On 04/07/2006 at 01:48, xxxxxxxx wrote:

            Just another question.

            I'm currently using the GCC compiler (MinGW32 on Windows) and I've set up my IDE (Codeblocks) importing a VC++ 7 project file included in the C++ SDK that (logically) gave me an incorrect configuration.
            So, I'd like to know if there is a way to use GCC with the SDK, and how.

            Thanks.

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

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

              On 04/07/2006 at 07:30, xxxxxxxx wrote:

              Nope. VC++ for Windows, CodeWarrior for Mac, XCode for Mac UB.

              You could always try Microsoft Visual C++ 2005 Express. It won't compile 64-bit plugins, but will do for 32-bit plugins.

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