Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    BaseSequence::T3 oddness

    SDK Help
    0
    2
    201
    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 01/04/2006 at 21:26, xxxxxxxx wrote:

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

      ---------
      Something while awaiting more info on XPresso...

      As part of my animation import, there is the possibility to 'insert' a set of frames, causing Sequence Keys and later Sequences to shift in time (so that they do not overlap).

      I find that adding a shift time to T3 (if T3 != T2) causes the loop section to grow the more the Sequence is shifted. What the hockey sticks is this? One would suppose (since no information contradicts or clarifies this) that this would work:

      seq->SetT3(seq->GetT3()+shift);
      seq->SetT2(seq->GetT2()+shift);
      seq->SetT1(seq->GetT1()+shift);

      Now, I modified this to check for equivalence, to something like this:

      T2 = seq->GetT2();
      T3 = seq->GetT3();
      if (T2 != T3) seq->SetT3(seq->GetT3()+shift);
      /* else */ seq->SetT2(seq->GetT2()+shift);
      seq->SetT1(seq->GetT1()+shift);

      1. Both with and without 'else' were attempted.
      2. Yes, I'm also shifting the Sequence's Keys.
      3. All variables in the shown code are BaseTime classes.

      Still, the Sequence loop section continues to grow as the Sequence is shifted to the right in time. How should this be handled properly then?

      Thanks,

      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 01/04/2006 at 21:51, xxxxxxxx wrote:

        "Ne'ermind, ne'ermind" said the raven. 🙂

        I see that if one does SetT2(), T3 is shifted automatically. Just need to consider T3's when calculating shift sizes.

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