starting point of keyframe animation



  • 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



  • 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



  • 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



  • 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



  • 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



  • 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


Log in to reply