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

    Copying and Pasting Sequences

    SDK Help
    0
    3
    233
    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 02/10/2004 at 13:56, xxxxxxxx wrote:

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

      ---------
      Hi all
      I'm a total newbie to plugin programming.  I wrote a plugin for trueSpace in VC++ that copies and pastes sequences at frame numbers supplied in an array.  These frame numbers come from midi music data.  The upshot is that I can drive an animation from midi music like Animusic.
      Anyway the time has come to do it in C4D.  Problem is I can't follow the SDK docs.  I want to manually select a sequence in the timeline and then press a button in my plugin and this copies and pastes the sequence.  I've got all the code for the dialog box and the midi part.  Any help with some examples of how to copy and paste a sequence would be greatly appreciated.  I had it in trueSpace that the pasted sequences all became part of one super sequence (or clip as they were called).  This is not absolutely essential but got around the problem of overlapping sequences where the note being played quickly repeated itself e.g. a guitar string is still vibrating from the last time it was played.
      Thanks
      Nigel / 3DKiwi
      [email protected]

      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 12/10/2004 at 08:48, xxxxxxxx wrote:

        There equivalence of copy/paste in plugin code is GetClone(). Find out which sequence is active (check the BIT_AAMAN bit), iterate through its keys, clone them, call AutoAddSequence() on the new time,  then insert the cloned keys.

        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 12/10/2004 at 10:46, xxxxxxxx wrote:

          Thanks very much.
          Nigel

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