add a key



  • On 09/09/2013 at 09:52, xxxxxxxx wrote:

    hi

    can one help me to add a Keyframe

    is there a way without tracks ?

    Many Thanks 
    Conner



  • On 09/09/2013 at 10:04, xxxxxxxx wrote:

    no, tracks are the basic class for c4d animation. i do not really understand the benefit of
    a scenario without tracks.

    tracklist= myBaseList2D.GetCTracks()
    for track in tracklist:
    	if track.CheckType(SOMEID) :
    		curve = track.GetCurve()
    		ckey = curve.AddKey(c4d.BaseTime(someTime))[0]
    		ckey.SetValue(curve, someValue)
    

Log in to reply