Hello! I am creating a script using arcpy that will automatically output 3D maps. Currently, a good portion of the maps are being output straight down. I would like to adjust the angle but I am having trouble accessing the properties. Here is a link that I tried using: https://pro.arcgis.com/en/pro-app/latest/help/mapping/navigation/camera-properties.htm
You were in the Help\Interact with maps and scenes section of the docs. For arcpy, use this one.
import arcpy aprx = arcpy.mp.ArcGISProject(r"CURRENT") m = aprx.listMaps("Yose*") # use the map name you want lyt = aprx.listLayouts("Main Attr*") list the layout name mf = lyt.listElements("mapframe_element", "Yosemite National Park") # get the frame to set the heading ptich and roll mf.camera.roll = 4.0 mf.camera.pitch = -30.0 mf.camera.heading = 36.0
maybe need an aprx.save in there depending on your workflow.