Selecting Only Merged Objects

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 28/12/2011 at 07:21, xxxxxxxx wrote:

Hello everyone,

I am trying to select merged objects using python.

What I want to be able to do is select only the merged objects in the scene and then run a "center object axis" command on them.

I was able to get the objects to merge but I can't select only the merged objects. I don't want to select all, but only the objects that I have merged.

Your help would be much appreciated.

bellow is my code:

import c4d
from c4d import gui
#Welcome to the world of Python

def main() :
    doc = c4d.documents.GetActiveDocument()
    path="Temp/temp.obj"
    c4d.documents.MergeDocument(doc, path, 1);
    c4d.CallCommand(1011982);
    c4d.EventAdd();
    
    
if __name__=='__main__':
    main()  
       
Thank you :)

Anand