<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Access and set the pitch, roll, and heading using arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/access-and-set-the-pitch-roll-and-heading-using/m-p/1313039#M68276</link>
    <description>&lt;P&gt;You were in&amp;nbsp; the Help\Interact with maps and scenes section of the docs. For arcpy, use this one.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/camera-class.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/camera-class.htm&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
aprx = arcpy.mp.ArcGISProject(r"CURRENT")

m = aprx.listMaps("Yose*")[0] # use the map name you want
lyt = aprx.listLayouts("Main Attr*")[0] list the layout name
mf = lyt.listElements("mapframe_element", "Yosemite National Park")[0] # 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&lt;/LI-CODE&gt;&lt;P&gt;maybe need an aprx.save in there depending on your workflow.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2023 12:53:42 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2023-07-28T12:53:42Z</dc:date>
    <item>
      <title>Access and set the pitch, roll, and heading using arcpy</title>
      <link>https://community.esri.com/t5/python-questions/access-and-set-the-pitch-roll-and-heading-using/m-p/1312560#M68266</link>
      <description>&lt;P&gt;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:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/navigation/camera-properties.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/help/mapping/navigation/camera-properties.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 14:46:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/access-and-set-the-pitch-roll-and-heading-using/m-p/1312560#M68266</guid>
      <dc:creator>saldanax</dc:creator>
      <dc:date>2023-07-27T14:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Access and set the pitch, roll, and heading using arcpy</title>
      <link>https://community.esri.com/t5/python-questions/access-and-set-the-pitch-roll-and-heading-using/m-p/1313039#M68276</link>
      <description>&lt;P&gt;You were in&amp;nbsp; the Help\Interact with maps and scenes section of the docs. For arcpy, use this one.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/camera-class.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/camera-class.htm&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
aprx = arcpy.mp.ArcGISProject(r"CURRENT")

m = aprx.listMaps("Yose*")[0] # use the map name you want
lyt = aprx.listLayouts("Main Attr*")[0] list the layout name
mf = lyt.listElements("mapframe_element", "Yosemite National Park")[0] # 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&lt;/LI-CODE&gt;&lt;P&gt;maybe need an aprx.save in there depending on your workflow.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 12:53:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/access-and-set-the-pitch-roll-and-heading-using/m-p/1313039#M68276</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-07-28T12:53:42Z</dc:date>
    </item>
  </channel>
</rss>

