AnsweredAssumed Answered

Animate Layers?

Question asked by KevinBellSLC on Aug 28, 2012
Latest reply on Aug 28, 2012 by KevinBellSLC
import arcpy import time  mxd = arcpy.mapping.MapDocument(r'C:\gis\solarDEMO\solarDemo.mxd') df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0] for lyr in arcpy.mapping.ListLayers(mxd, "", df):      print lyr.name     lyr.visible = True     arcpy.RefreshActiveView()     time.sleep(1)     lyr.visible = False     arcpy.RefreshActiveView()     time.sleep(1)


What am I missing here?  I expect to see the layers turn on and off in the map but they don't.  I'm running this through the py window within arcmap.

Outcomes