THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/07/2006 at 12:51, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.6
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
Hello everybody.
To export animations data, I'd want to insert a keyframe per frame in already recorded animation sequences. I've written this little function to try to do that :
AddAKeyframePerFrame(sequence,fps)
{
var time;
var frame;
time=sequence->GetT3();
var last_frame=time->GetFrame(fps);
for(frame=0;f<=last_frame;frame++)
{
time->SetFrame(frame,fps);
var key=new(TimeKey);
key->SetTime(time);
sequence->InsertKey(key);
}
}
But this doesn't work (I see no keyframes added in the timeline window)...
Could someone explain me how to correctly manage keyframes ?
Thank you.