this gives me a list of all 55 layers in my mxd
import arcpy mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd, "Layer") for lyr in arcpy.mapping.ListLayers(mxd, "*", df): print lyr.name
What I want to do is get the index number of a specific layer. For example, I want to look for the layer named 'Water' and I want the script to tell me "Water' is at position 50, so I know to look for it at the bottom on the TOC. How can I do this?