ObjectLayerList

ObjectLayerList(objects=None, sort=False)

Returns a list of all the Layer Names for the objects :param objects: If omitted, all objects in the document is used :param sort: Sort the list if True.

returns:List of Layer Names and a dictionary of all objects with layer name as key