THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/02/2004 at 18:40, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform: Windows ;
Language(s) : C++ ;
---------
Hi all,
I am trying to get the rotation of the particular object. The code is like this:
** BaseDocument *doc = GetActiveDocument();
BaseObject *obj = BaseObject::Alloc(Ocube);
obj = doc->GetActiveObject();** **
Vector rotation = obj->GetRot();**
But I am getting the error in C4D that the memory could not be read. Can anyone tell me what's wrong with this code.
Thanks for the reply in advance
Regards