Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 256 Bytes

arcpy.mp.md

File metadata and controls

10 lines (9 loc) · 256 Bytes

Turn the visibility of any sub-group layers off

project = arcpy.mp.ArcGISProject("CURRENT")
cur_map = project.activeMap
for l in cur_map.listLayers():
    if l.isGroupLayer:
        for l2 in l.listLayers():
            l2.visible = False