def deleteEmptySets(setList=[]):
    '\n\tDelete empty object sets\n\t@param setList: A list of sets to check. If empty, chack all sets in current scene.\n\t@type setList: list\n\t'
    if (not setList):
        setList = mc.ls(sets=True)
    emptySetList = []
    for set in setList:
        if (not mc.sets(set, q=True)):
            emptySetList.append(set)
    for emptySet in emptySetList:
        try:
            mc.delete(emptySet)
        except:
            pass
    return emptySetList
Delete empty object sets
@param setList: A list of sets to check. If empty, chack all sets in current scene.
@type setList: list
def deleteEmptySets(setList=[]):
    '\n\tDelete empty object sets\n\t@param setList: A list of sets to check. If empty, chack all sets in current scene.\n\t@type setList: list\n\t'
    if (not setList):
        setList = mc.ls(sets=True)
    emptySetList = []
    for set in setList:
        if (not mc.sets(set, q=True)):
            emptySetList.append(set)
    for emptySet in emptySetList:
        try:
            mc.delete(emptySet)
        except:
            pass
    return emptySetList