<?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: Export Selections Sets via Python? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/export-selections-sets-via-python/m-p/432558#M5901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do script-based exporting*. I did some selection based exporting myself but don't recall being able to pick selection sets. Instead I gave all shapes in the different sets the same Name and used that to selected them (ce.getObjectsFrom --&amp;gt; ce.withName).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fcehelp.esri.com%2Fhelp%2Findex.jsp%3Ftopic%3D%2Fcom.procedural.cityengine.help%2Fhtml%2Fmanual%2Fexport%2Fexport_formats_scriptbased.html" rel="nofollow" target="_blank"&gt;http://cehelp.esri.com/help/index.jsp?topic=/com.procedural.cityengine.help/html/manual/export/export_formats_scriptbased.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jun 2016 08:49:51 GMT</pubDate>
    <dc:creator>LR</dc:creator>
    <dc:date>2016-06-09T08:49:51Z</dc:date>
    <item>
      <title>Export Selections Sets via Python?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/export-selections-sets-via-python/m-p/432557#M5900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking to batch export my Selection Sets so that each set is it's own export. I cannot find in the documentation whether this is something that can be done, or how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be specific, my plan was to create an array with all the selection set names, then use a simple for loop to go through the array. If anyone knows how, I would much appreciate it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2016 21:52:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/export-selections-sets-via-python/m-p/432557#M5900</guid>
      <dc:creator>ThomasMoore6</dc:creator>
      <dc:date>2016-06-08T21:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Export Selections Sets via Python?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/export-selections-sets-via-python/m-p/432558#M5901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do script-based exporting*. I did some selection based exporting myself but don't recall being able to pick selection sets. Instead I gave all shapes in the different sets the same Name and used that to selected them (ce.getObjectsFrom --&amp;gt; ce.withName).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fcehelp.esri.com%2Fhelp%2Findex.jsp%3Ftopic%3D%2Fcom.procedural.cityengine.help%2Fhtml%2Fmanual%2Fexport%2Fexport_formats_scriptbased.html" rel="nofollow" target="_blank"&gt;http://cehelp.esri.com/help/index.jsp?topic=/com.procedural.cityengine.help/html/manual/export/export_formats_scriptbased.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 08:49:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/export-selections-sets-via-python/m-p/432558#M5901</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2016-06-09T08:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Export Selections Sets via Python?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/export-selections-sets-via-python/m-p/432559#M5902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I, too, have tried this, but it never works. A lot of my python export scripts never work. Maybe you can spot what I'm doing wrong in the code below, which has been altered to fit this situation better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exportSettings = FBXExportModelSettings()
&amp;nbsp;&amp;nbsp;&amp;nbsp; exportSettings.setOutputPath("path to my exports")
&amp;nbsp;&amp;nbsp;&amp;nbsp; exportSettings.getMeshGranularity("PER_MATERIAL")
&amp;nbsp;&amp;nbsp;&amp;nbsp; exportSettings.setGlobalOffset([-322000, 0, 4306000])
&amp;nbsp;&amp;nbsp;&amp;nbsp; shapes = ce.getObjectsFrom(ce.scene, ce.withName("'Buildings_1'"))
&amp;nbsp;&amp;nbsp;&amp;nbsp; exportSettings.setBaseName("Buildings_1")
&amp;nbsp;&amp;nbsp;&amp;nbsp; ce.export(shapes, exportSettings)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I feed this exact script line by line into the console, it works, but doesn't select via the name and exports whatever is selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:26:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/export-selections-sets-via-python/m-p/432559#M5902</guid>
      <dc:creator>ThomasMoore6</dc:creator>
      <dc:date>2021-12-11T19:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Export Selections Sets via Python?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/export-selections-sets-via-python/m-p/432560#M5903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to set the selection, under line 5 add this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14654834763651654 jive_text_macro" data-renderedposition="60_8_1332_16" jivemacro_uid="_14654834763651654"&gt;&lt;P&gt;ce.setSelection(shapes)&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2016 14:45:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/export-selections-sets-via-python/m-p/432560#M5903</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2016-06-09T14:45:52Z</dc:date>
    </item>
  </channel>
</rss>

