After calling MergeDocument()
merge_status = c4d.documents.MergeDocument(doc, path, c4d.SCENEFILTER_MERGESCENE | c4d.SCENEFILTER_OBJECTS)
I check merge_status to be true and wish to find some handle/name to the object associated with the call to MergeDocument(), how do I do that ?
I tried the following on an empty scene
doc = c4d.documents.GetActiveDocument() ao = doc.GetActiveObject()
that works if I am calling MergeDocument for a single path but if I am calling MergeDocument (in a loop) for a collection of paths, GetActiveObject() points to the same object, not the next one corresponding to the next path I am merging into the scene