def uniqueNameCheck(objList=[], transformsOnly=False):
    '\n\tReturn a list of nodes with non unique names\n\t@param objList: List of scene objects to check. If empty, use all existing scene nodes.\n\t@type objList: list\n\t@param transformsOnly: Check transform names only\n\t@type transformsOnly: bool\n\t'
    if (not objList):
        objList = mc.ls()
    if transformsOnly:
        nodeList = mc.ls(objList, transforms=True)
    else:
        nodeList = mc.ls(objList, dag=True)
    nonUniqueList = [i for i in nodeList if i.count('|')]
    return nonUniqueList
Return a list of nodes with non unique names
@param objList: List of scene objects to check. If empty, use all existing scene nodes.
@type objList: list
@param transformsOnly: Check transform names only
@type transformsOnly: bool
def uniqueNameCheck(objList=[], transformsOnly=False):
    '\n\tReturn a list of nodes with non unique names\n\t@param objList: List of scene objects to check. If empty, use all existing scene nodes.\n\t@type objList: list\n\t@param transformsOnly: Check transform names only\n\t@type transformsOnly: bool\n\t'
    if (not objList):
        objList = mc.ls()
    if transformsOnly:
        nodeList = mc.ls(objList, transforms=True)
    else:
        nodeList = mc.ls(objList, dag=True)
    nonUniqueList = [i for i in nodeList if i.count('|')]
    return nonUniqueList