I'm migrating to arcgis pro, and i cannot find working documentation about this problem.
I'd like to export only the dataframe of the layout, i commented out the old method. Any idea? It's a printing tool for many map series projects with more layouts.
p = arcpy.mp.ArcGISProject(pPath)
for l in p.listLayouts():
fileName = l.name
ms = l.mapSeries
#df = arcpy.mapping.ListDataFrames(p, "Layers")[0]
for pageNum in range(1, ms.pageCount + 1😞 if outFormat == "GIF" and noFrame == "true":
#l.exportToGIF(pdfRootName +"_"+ gifpageName + "_data.gif", df, df_export_width=2560, df_export_height=1920)
l.exportToGIF(destination + "\\" + gifpageName + ".gif", clip_to_elements=True, resolution=300)