On 17/07/2015 at 16:03, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 16
Platform: Windows ;
Language(s) : C++ ;
---------
Hello,
I'm getting crazy. I want to cut an object and insert it as an child to an null object. Here's my code:
BaseObject* op = doc->GetFirstObject();
BaseObject* wallsNull = BaseObject::Alloc(Onull);
wallsNull->SetName("UE4Ex_Walls");
doc->InsertObject(wallsNull,nullptr,nullptr);
doc->InsertObject(op,wallsNull,nullptr);
After executing this, my whole objects of the scene are inside the "wallsNull" and not only the first one. Also cinema freezes.
What I'm doing wrong?
Edit: Cinema doesn't freeze but I can't close it.
Thanks