THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/05/2007 at 20:22, xxxxxxxx wrote:
Cinema 4D Version: 9.6+
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
i'm inside VP_INNER.
Good place to play.. :)
I need to calculate the true motion blur, this mean that the mblur take account of trajectories.
So i can't use motion_delta, because i can reconstruct only 2 points of my motion.
So i used AnimateObject.
All is ok.. but when i use a virtual object like a sphere, the sphere->GetMg() don't change with the AnimateObject call.
"The will only work if the object is attached to a document. Virtual objects in caches and deform caches are not attached to a document, so this function cannot be used for those objects."
When i make it editable, all ok :)
I'm getting the
BaseObject *myObj = Vd->GetObj(n)->link;
BaseDocument *myDoc = myObj->GetDocument();
myDoc->AnimateObject(myObj, myTime, flag);
Matrix m = myDoc->GetMg(); <-- this is my prob.
any suggestion to get the matrix from here?
thanks in advance