def intermediateShapesCheck(objList=[]):
    '\n\tReturn a list of intermediate shapes.\n\t@param objList: List of objects to check for intermediate shapes.\n\t@type objList: list\n\t'
    if (not objList):
        objList = mc.ls(transforms=True)
    else:
        objList = mc.ls(objList, transforms=True)
    result = []
    for obj in objList:
        shapes = mc.listRelatives(obj, s=True, pa=True)
        if (not shapes):
            shapes = []
        for shape in shapes:
            if mc.objExists((shape + '.intermediateObject')):
                if mc.getAttr((shape + '.intermediateObject')):
                    result.append(shape)
    return result
Return a list of intermediate shapes.
@param objList: List of objects to check for intermediate shapes.
@type objList: list
def intermediateShapesCheck(objList=[]):
    '\n\tReturn a list of intermediate shapes.\n\t@param objList: List of objects to check for intermediate shapes.\n\t@type objList: list\n\t'
    if (not objList):
        objList = mc.ls(transforms=True)
    else:
        objList = mc.ls(objList, transforms=True)
    result = []
    for obj in objList:
        shapes = mc.listRelatives(obj, s=True, pa=True)
        if (not shapes):
            shapes = []
        for shape in shapes:
            if mc.objExists((shape + '.intermediateObject')):
                if mc.getAttr((shape + '.intermediateObject')):
                    result.append(shape)
    return result