THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 21/02/2011 at 15:48, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 12
Platform: Windows ;
Language(s) : C++ ;
---------
Can anyone tell me the correct way to print the result of the GetTime() function to the console please?
BaseObject* obj = doc->GetActiveObject(); // get the active object
if(!obj) return 0;
CTrack *track = obj->FindCTrack(DescID(DescLevel(ID_BASEOBJECT_REL_POSITION,DTYPE_VECTOR,0), DescLevel(VECTOR_X,DTYPE_REAL,0))); // The Position.X track
if(!track)return 0;
CKey *Key1 = track->GetCurve()->GetKey(0);
BaseTime* result = &Key1->GetTime();
GePrint(result); //<-----How do I print the result of Key1->GetTime()?
-ScottA