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:
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:
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);
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?
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.