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
    • Recent
    • Tags
    • Users
    • Login

    starting point of keyframe animation

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 521 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 19/05/2010 at 04:45, xxxxxxxx wrote:

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

      ---------
      Hi there,

      can someone give me a hint, how i can change the starting time of an objects keyframe animation?
      say, i have created some clones and the original object has a keyframe animation. now every clone plays synchronous, but i want to be able to set an offset so each clone plays at a different start time.

      thank you very much for any input on this...

      cheers,
      ello

      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 25/05/2010 at 13:01, xxxxxxxx wrote:

        hm, i still have no clue with this. anyone??

        thanks,
        ello

        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 26/05/2010 at 02:53, xxxxxxxx wrote:

          You have to manually shift the keys. For instance with CKey::SetTime.

          cheers,
          Matthias

          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 26/05/2010 at 03:10, xxxxxxxx wrote:

            thanks for your input, matthias.

            so basically i would use the following procedure, did i understand that right?

            I use GetFirstCTrack to get the first track. Now i need to cycle thru all CTracks with GetNext() and there i need to do the following for each and everything that is found?

            CTrack->GetCurve
            CCurve->GetKeyCount
            cycle thru the keys and use
            CKey->SetTime (using old Time + offset)

            is this the way it works?

            cheers,
            ello

            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 26/05/2010 at 03:37, xxxxxxxx wrote:

              Originally posted by xxxxxxxx

              CTrack->GetCurve
              CCurve->GetKeyCount
              cycle thru the keys and use
              CKey->SetTime (using old Time + offset)

              is this the way it works?

              looks ok to me

              cheers,
              Matthias

              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 26/05/2010 at 03:47, xxxxxxxx wrote:

                ok.. thanks. i'll see how it works out. i just hope it wont slow down my plugin too much when this happens to a lot of clones

                cheers,
                ello

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