I have script for exporting separate data driven pages (script tool in a toolbox).
import arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
pageNumbers = [4,7,11] #select pages before exporting
for pageNum in pageNumbers:
mxd.dataDrivenPages.currentPageID = pageNum
arcpy.mapping.ExportToJPEG(mxd, r"C:\Path" + str(pageNum) + ".jpg")
del mxd
Is it possible to change the page numbers in the brackets without changing the code manually?
I mean, after clicking the link, you will be brought to a window to choose the pages you would like to export. There may be checkboxes drawn next to the page numbers or text boxes with the page numbers.