I will keep a lookout again. Perhaps it is a mistake on my part.. But in case if anyone chance upon this thread, I managed to get groups' selection by using 2 sets.. transform_set = set(cmds.listRelatives(cmds.ls(transforms=True), ap=True, ni =True)) mesh_set = set(cmds.listRelatives(cmds.ls(typ='mesh'), parent=True)) group_selection = list(trans_set.difference(mesh_set))
Not in the most elegant way of doing, but since my scene seems to be dealing mainly with meshes and groups, I think it work in my cause. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/52d1b8f8-844f-470e-a933-a19a0a840b70%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
