Hi guys,
When I try this line, it gives me all the layers of all dataframes,
Any tweeks around this?
Cheers
When I try this line, it gives me all the layers of all dataframes,
Code:
uniquelyrs = []
for df in arcpy.mapping.ListDataFrames(mxd):
lyrs = arcpy.mapping.ListLayers(mxd, "", df)
for lyr in lyrs :
if lyr not in uniquelyrs:
uniquelyrs.append(lyr)
Cheers