<?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: Change object attribute of a leaf shape? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/change-object-attribute-of-a-leaf-shape/m-p/563660#M7615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://cehelp.esri.com/help/index.jsp?topic=/com.procedural.cityengine.help/html/toc.html"&gt;&lt;STRONG&gt;City Engine Help&lt;/STRONG&gt;&lt;/A&gt; ....&amp;nbsp; might be what you are looking for, for general guidance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2018 11:25:19 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-05-15T11:25:19Z</dc:date>
    <item>
      <title>Change object attribute of a leaf shape?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/change-object-attribute-of-a-leaf-shape/m-p/563657#M7612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to change an attribute of a leaf shape (flag the attribute "window" as "yes" for window shapes).&lt;/P&gt;&lt;P&gt;I tried creating an object attribute (str, NULL or "no") and then filling it in with this, but without success:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Window --&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s('1,'1,0.4)&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;t(0,0,-0.25)&lt;BR /&gt; &lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;i(window_asset) &lt;BR /&gt; &lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;set(window, "yes")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Maybe set() is the wrong function. What would be a better way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that I thought of using a Python script and try to select all the leaf shapes that are windows. Can you actually select just certain leaf shapes with ce.selection? How would I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 05:31:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/change-object-attribute-of-a-leaf-shape/m-p/563657#M7612</guid>
      <dc:creator>nataliebrandenberg</dc:creator>
      <dc:date>2018-05-15T05:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Change object attribute of a leaf shape?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/change-object-attribute-of-a-leaf-shape/m-p/563658#M7613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set is correct. It changes, but it won't be reflected in the&amp;nbsp;Inspector. Use Inspect model under Model Hierachy (but the actual info tab is under Inspector...) and you'll see. Alternatively, &lt;STRONG&gt;print(window)&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 10:03:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/change-object-attribute-of-a-leaf-shape/m-p/563658#M7613</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2018-05-15T10:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change object attribute of a leaf shape?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/change-object-attribute-of-a-leaf-shape/m-p/563659#M7614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer!&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I export the buildings as multipatch features (with one feature per leaf shape), the attribute change is not visible in the attribute table in ArcGIS. So that's why I'm not sure, if the attribute is even changed. The better question is maybe, why I can't see the attributes in Arcmap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can I use the command print(window)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 10:07:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/change-object-attribute-of-a-leaf-shape/m-p/563659#M7614</guid>
      <dc:creator>nataliebrandenberg</dc:creator>
      <dc:date>2018-05-15T10:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change object attribute of a leaf shape?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/change-object-attribute-of-a-leaf-shape/m-p/563660#M7615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://cehelp.esri.com/help/index.jsp?topic=/com.procedural.cityengine.help/html/toc.html"&gt;&lt;STRONG&gt;City Engine Help&lt;/STRONG&gt;&lt;/A&gt; ....&amp;nbsp; might be what you are looking for, for general guidance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 11:25:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/change-object-attribute-of-a-leaf-shape/m-p/563660#M7615</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-05-15T11:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Change object attribute of a leaf shape?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/change-object-attribute-of-a-leaf-shape/m-p/563661#M7616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did use the CityEngine help. But I did not find any details on how to make sure that all the attributes of a leaf shape are exported (other than ticking&amp;nbsp;&lt;EM style="background-color: #ffffff; color: #000000; font-size: 14.4px;"&gt;Export&amp;nbsp;object&lt;/EM&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;&amp;nbsp;&lt;EM&gt;attributes&lt;/EM&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: 14.4px;"&gt;Can you point me in the right direction?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 11:38:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/change-object-attribute-of-a-leaf-shape/m-p/563661#M7616</guid>
      <dc:creator>nataliebrandenberg</dc:creator>
      <dc:date>2018-05-15T11:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change object attribute of a leaf shape?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/change-object-attribute-of-a-leaf-shape/m-p/563662#M7617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was referring to links to the 'console' to print stuff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 11:49:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/change-object-attribute-of-a-leaf-shape/m-p/563662#M7617</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-05-15T11:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Change object attribute of a leaf shape?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/change-object-attribute-of-a-leaf-shape/m-p/563663#M7618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I see. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 11:52:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/change-object-attribute-of-a-leaf-shape/m-p/563663#M7618</guid>
      <dc:creator>nataliebrandenberg</dc:creator>
      <dc:date>2018-05-15T11:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Change object attribute of a leaf shape?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/change-object-attribute-of-a-leaf-shape/m-p/563664#M7619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The print command goes in the CGA. You can see the printout when you generate the model, under CGA Console. If you export to GDB you have to report your attributes. It'll write a bunch (average, etc) you most likely won't need but you can delete them again. Here's a simple example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;@StartRule 
 Lot &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; 
 extrude&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 split&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;~&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0.5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; A &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;~&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0.5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; B&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
 
 A &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
 set&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Window&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"yes"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Window&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 report&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Window"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Window&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 
 B &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
 set&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Window&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"nope"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Window&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 report&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Window"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; Window&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:17:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/change-object-attribute-of-a-leaf-shape/m-p/563664#M7619</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2021-12-12T00:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Change object attribute of a leaf shape?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/change-object-attribute-of-a-leaf-shape/m-p/563665#M7620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked. Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 11:34:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/change-object-attribute-of-a-leaf-shape/m-p/563665#M7620</guid>
      <dc:creator>nataliebrandenberg</dc:creator>
      <dc:date>2018-05-16T11:34:27Z</dc:date>
    </item>
  </channel>
</rss>

