My current script is exporting all of my layout windows. Does anyone have an example of how I can export a specific layout window?
import arcpy
docPath = r"*PATH*"
docName = r"Test.aprx"
p = arcpy.mp.ArcGISProject(docPath+"\\"+docName)
# ge a list of all layouts in your map dox
lLayout = p.listLayouts()
for l in lLayout:
print(l.name)
#You could add an if statement to print ONLY a specific layout
l.exportToJPEG(docPath+"\\"+l.name)
print("Process Completed")