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:
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
CKey *Key1 = track->GetCurve()->GetKey(0);
BaseTime* result = &Key1->GetTime();
GePrint(result); //<-----How do I print the result of Key1->GetTime()?
On 21/02/2011 at 16:01, xxxxxxxx wrote:
Depends which information from the basetime you would like to print out
On 21/02/2011 at 16:15, xxxxxxxx wrote:
I don't really know how to answer that.
I'm trying out some of the animation functions in the C++ API.
One of them is the GetTime() function.
And I was curious to see what the result is from this function in an actual real world example.
So I guess my answer to which information I'd like to see would be: All of them.
On 21/02/2011 at 16:18, xxxxxxxx wrote:
Then look up the BaseTime class in the docs and simply print them out by calling the functions like GetFrame or calculate anything else you need from the denominator and numerator. The BaseTime is really just an interface or container class and not as explicit as a value for example.
On 21/02/2011 at 16:50, xxxxxxxx wrote:
Oh I see.
It sort of wraps the results of two different functions into one function.