On 21/04/2017 at 06:19, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 17
Platform: Windows ;
Language(s) : C++ ;
---------
Hello. In order to use ExecutePasses() i am creating a dummy document and cloning the objects I'm interested in.
Here's the code for that:
//BaseDocument * bd, and BaseObject * op are passed from GetVirtualObjects()
//isolate objects and move to new document
AtomArray * aa = AtomArray::Alloc();
aa->Append(op);
BaseDocument * doc = IsolateObjects(bd, *aa);
Now, I'm interested in finding the clone of op in doc. In a related thread Andreas suggested using the unique ids of c4d. But how exactly do I know what is the unique id of the clone?
Perhaps there is a better, easier way?
Many thanks!