THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/03/2010 at 10:55, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10
Platform: Windows ;
Language(s) : C++ ;
---------
Hi,
I have created a CommandData plugin that adds an object to an existing scene and makes it follow a certain pre-defined path. For this I am setting the keyframes for the position of the object, i.e.
CTrack *bodyTrack = CTrack::Alloc(bodyOp,DescLevel(ID_BASEOBJECT_POSITION,DTYPE_VECTOR,0));
if (!bodyTrack) { return FALSE; }
bodyOp->InsertTrackSorted(bodyTrack);
CKey *bodyKey = NULL;
for (LONG simCount = 0; simCount<=simRuns; simCount++)
{
Vector posVector = ComputeCoords(body,time);
bodyKey = bodyTrack->GetCurve()->AddKey(BaseTime(simCount,framerate),NULL);
bodyKey->SetGeData(bodyTrack->GetCurve(),posVector);
time++;
}
It seems to work, and I see all the keyframes and the object moves. However, I was expecting to also see these keyframes in the Attribute Manager (i.e. in the object description) and also to see the path in the editor window (like it happens when I manually change the position and set the keyframe). Why is that not shown? What do I have to do to show it?
Thanks,
Juergen