<?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: Batch import and export to multiple heightmaps (.tif) using cityengine python API. in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/batch-import-and-export-to-multiple-heightmaps-tif/m-p/1172319#M10498</link>
    <description>&lt;P&gt;hi again,&lt;/P&gt;&lt;P&gt;First, you should clean up your script:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;2x &lt;EM&gt;ce = CE()&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;2x &lt;EM&gt;if __name__ == '__main__':&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Then you need also to define how you want to&amp;nbsp; export terrains in your &lt;EM&gt;FBXExportModelSettings()&lt;/EM&gt; e.g. if you want to export all:&lt;/P&gt;&lt;P&gt;ems.setTerrainLayers(ems.TERRAIN_ALL)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2022 08:42:27 GMT</pubDate>
    <dc:creator>JonasObertuefer</dc:creator>
    <dc:date>2022-05-10T08:42:27Z</dc:date>
    <item>
      <title>Batch import and export to multiple heightmaps (.tif) using cityengine python API.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/batch-import-and-export-to-multiple-heightmaps-tif/m-p/1167796#M10478</link>
      <description>&lt;P&gt;I want to batch import and export batches of multiple heightmaps (.tif) using cityengine python API. Has anyone encountered this problem? I'd appreciate it if anyone could point me to how to do this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leehwichan_0-1650948767722.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39828iDE300F41B83B35B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leehwichan_0-1650948767722.png" alt="leehwichan_0-1650948767722.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 05:25:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/batch-import-and-export-to-multiple-heightmaps-tif/m-p/1167796#M10478</guid>
      <dc:creator>leehwichan</dc:creator>
      <dc:date>2022-04-26T05:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Batch import and export to multiple heightmaps (.tif) using cityengine python API.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/batch-import-and-export-to-multiple-heightmaps-tif/m-p/1168362#M10480</link>
      <description>&lt;P&gt;hi there,&lt;/P&gt;&lt;P&gt;I don't have a complete solution, but I suggest having a look at this links in the python docs:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://doc.arcgis.com/en/cityengine/latest/python/ce.htm#ESRI_SECTION1_D39CFF25A87149549BD0EA1724D8C4CE" target="_blank" rel="noopener"&gt;addAttributeLayer&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://doc.arcgis.com/en/cityengine/latest/python/image-export-terrain-settings.htm" target="_blank" rel="noopener"&gt;ImageExportTerrainSettings&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;hope this points you into the right direction!&lt;/P&gt;&lt;P&gt;Cheers&lt;BR /&gt;Jonas&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 15:09:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/batch-import-and-export-to-multiple-heightmaps-tif/m-p/1168362#M10480</guid>
      <dc:creator>JonasObertuefer</dc:creator>
      <dc:date>2022-04-27T15:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: Batch import and export to multiple heightmaps (.tif) using cityengine python API.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/batch-import-and-export-to-multiple-heightmaps-tif/m-p/1169153#M10481</link>
      <description>&lt;P&gt;Created scrapbook for fbx batch export of all terrain in 3D view. But it doesn't work. What's the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'''&lt;BR /&gt;Created on 2022. 4. 29.&lt;/P&gt;&lt;P&gt;@author: user&lt;BR /&gt;'''&lt;BR /&gt;from scripting import *&lt;/P&gt;&lt;P&gt;# get a CityEngine instance&lt;BR /&gt;ce = CE()&lt;/P&gt;&lt;P&gt;from scripting import *&lt;BR /&gt;ce = CE()&lt;/P&gt;&lt;P&gt;if __name__ == '__main__':&lt;BR /&gt;layers = ce.getObjectsFrom(ce.scene(), ce.isLayer)&lt;BR /&gt;for layer in layers:&lt;BR /&gt;objects = ce.getObjectsFrom(layer, ce.isShape)&lt;BR /&gt;ems = FBXExportModelSettings()&lt;BR /&gt;ems.setOutputPath(ce.toFSPath(r"filepath"))&lt;BR /&gt;#set other options&lt;BR /&gt;ce.setSelection(objects)&lt;BR /&gt;ce.export(objects, ems)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if __name__ == '__main__':&lt;BR /&gt;pass&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 05:13:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/batch-import-and-export-to-multiple-heightmaps-tif/m-p/1169153#M10481</guid>
      <dc:creator>leehwichan</dc:creator>
      <dc:date>2022-04-29T05:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Batch import and export to multiple heightmaps (.tif) using cityengine python API.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/batch-import-and-export-to-multiple-heightmaps-tif/m-p/1172319#M10498</link>
      <description>&lt;P&gt;hi again,&lt;/P&gt;&lt;P&gt;First, you should clean up your script:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;2x &lt;EM&gt;ce = CE()&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;2x &lt;EM&gt;if __name__ == '__main__':&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Then you need also to define how you want to&amp;nbsp; export terrains in your &lt;EM&gt;FBXExportModelSettings()&lt;/EM&gt; e.g. if you want to export all:&lt;/P&gt;&lt;P&gt;ems.setTerrainLayers(ems.TERRAIN_ALL)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 08:42:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/batch-import-and-export-to-multiple-heightmaps-tif/m-p/1172319#M10498</guid>
      <dc:creator>JonasObertuefer</dc:creator>
      <dc:date>2022-05-10T08:42:27Z</dc:date>
    </item>
  </channel>
</rss>

