Exporting animation not working in R12
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/02/2011 at 03:20, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R12
Platform: Windows ;
Language(s) : C++ ;---------
Hi,The code I'm using to export animation tracks (rotation, translation and scale) is not working anymore in R12...
I always have the same value returned whatever time I use.
It's like this :
BaseObject *op (parameter of the function) BaseTime time; float lastfr=doc->GetMaxTime().GetFrame(doc->GetFps()); float firstfr=doc->GetMinTime().GetFrame(doc->GetFps()); float fps=(float)doc->GetFps(); float starttime=0.0f; float endtime=(lastfr-firstfr)/fps; for(float curtime=0.0f;curtime<=endtime;curtime+=(1/25.0f)) { time.SetNumerator(curtime); time.SetDenominator(1.0f); nafx.doc->AnimateObject(op,time,ANIMATEFLAGS_NO_PARTICLES); myfile<<op->GetRelPos().x<<" "<< op->GetRelPos().x <<" "<< op->GetRelPos().x; myfile<<op->GetRelRot().x<<" "<< op->GetRelRot().x <<" "<< op->GetRelRot().x; myfile<<op->GetRelScale().x<<" "<< op->GetRelScale().x <<" "<< op->GetRelScale().x; }
Any idea ?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/02/2011 at 03:32, xxxxxxxx wrote:
How is the object animated, by tracks or by expressions?
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 08/02/2011 at 03:52, xxxxxxxx wrote:
All objects are animated by tracks.
Regards,
Gil