I've been trying to code a script to export my map series to tiff. I was able to do this in ArcMap but am unable to figure it out by myself in ArcGIS Pro.
Can you help me with my basic code T_T ...it was copied from one of the geonet helpdesk posts. Tried to switch it up to TIFF instead of PDF export.
aprx = arcpy.mp.ArcGISProject(r"import_path")
arcpy.env.overwriteOutput = True
out_tiff = (r"export_path")
lytlist = aprx.listLayouts()[0]
if not lytlist.mapSeries is None:
mseries = lytlist.mapSeries
if mseries.enabled:
mseries.exportToTIFF(out_tif + "iOV", multiple_files='TIFF_MULTIPLE_FILES_PAGE_NAME', resolution=300, tiff_compression = "NONE", image_quality = "BEST")
It errors that 'MapSeries' object has no attribute 'exportToTIFF' ...which i'm sure is a rly easy thing to fix, but I don't have much experience with coding.
l
, which is a layout object, you call itlytlist
. (pro.arcgis.com/en/pro-app/arcpy/mapping/layout-class.htm)