<?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: When set operation is used - update inspector in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/when-set-operation-is-used-update-inspector/m-p/1131505#M10647</link>
    <description>&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;This can't be fixed because thats not how the inspector works:&lt;/P&gt;&lt;P&gt;The inspector shows the attributes how they are set in the rule or set by the user &lt;STRONG&gt;before&lt;/STRONG&gt; the actual generate happens.&lt;/P&gt;&lt;P&gt;The set operation does set the attribute dynamically &lt;STRONG&gt;while&lt;/STRONG&gt; generating the rule and it will also set the attribute for the current shape tree (and all it's childs) only, it's the same behaviour as with builtin attributes e.g. set(material.opacity,..)&lt;/P&gt;&lt;P&gt;Hope this clarifies things a bit.&lt;/P&gt;&lt;P&gt;What do you want to achieve? Maybe there is another way to do it?&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Jonas&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jan 2022 07:35:30 GMT</pubDate>
    <dc:creator>JonasObertuefer</dc:creator>
    <dc:date>2022-01-07T07:35:30Z</dc:date>
    <item>
      <title>When set operation is used - update inspector</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/when-set-operation-is-used-update-inspector/m-p/1131029#M10646</link>
      <description>&lt;P&gt;When the set operation is used in the CGA the inspector attributes do not update to show the change.&amp;nbsp; &amp;nbsp;Could this be fixed?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 22:04:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/when-set-operation-is-used-update-inspector/m-p/1131029#M10646</guid>
      <dc:creator>Clover4</dc:creator>
      <dc:date>2022-01-05T22:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: When set operation is used - update inspector</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/when-set-operation-is-used-update-inspector/m-p/1131505#M10647</link>
      <description>&lt;P&gt;Hi Brian,&lt;/P&gt;&lt;P&gt;This can't be fixed because thats not how the inspector works:&lt;/P&gt;&lt;P&gt;The inspector shows the attributes how they are set in the rule or set by the user &lt;STRONG&gt;before&lt;/STRONG&gt; the actual generate happens.&lt;/P&gt;&lt;P&gt;The set operation does set the attribute dynamically &lt;STRONG&gt;while&lt;/STRONG&gt; generating the rule and it will also set the attribute for the current shape tree (and all it's childs) only, it's the same behaviour as with builtin attributes e.g. set(material.opacity,..)&lt;/P&gt;&lt;P&gt;Hope this clarifies things a bit.&lt;/P&gt;&lt;P&gt;What do you want to achieve? Maybe there is another way to do it?&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Jonas&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 07:35:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/when-set-operation-is-used-update-inspector/m-p/1131505#M10647</guid>
      <dc:creator>JonasObertuefer</dc:creator>
      <dc:date>2022-01-07T07:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: When set operation is used - update inspector</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/when-set-operation-is-used-update-inspector/m-p/1132403#M10648</link>
      <description>&lt;P&gt;Thanks Jonas!&amp;nbsp; &amp;nbsp;This is helpful.&amp;nbsp; &amp;nbsp;I've been trying to figure out the best way to do styles.&amp;nbsp; I think the best way currently is to set up csv sheets with style attributes.&amp;nbsp; Unlike set operation, they can be over-ridden. Having a csv style sheet can give a useful starting point for a particular style in a complex code with lots of attributes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I think it would be nice if there was a way to automate the styles created in the inspector which get pasted into the code at the end, instead into csv sheets/arrays the way that the new materials export works.&amp;nbsp; To note, there is already an "idea" for this by someone for something like this.&amp;nbsp; &amp;nbsp;The material get/set method was a great improvement!&amp;nbsp; I think the difference is in workflows - setting styles in the inspector at the end seems intuitive, but creating a csv style sheet before or after working on your code is less so.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;These are just thoughts open to change through discussion and understanding!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 12:50:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/when-set-operation-is-used-update-inspector/m-p/1132403#M10648</guid>
      <dc:creator>Clover4</dc:creator>
      <dc:date>2022-01-11T12:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: When set operation is used - update inspector</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/when-set-operation-is-used-update-inspector/m-p/1133777#M10649</link>
      <description>&lt;P&gt;I see, thanks for the input. Just one more question for understanding: Why is directly managing it via styles in the cga not an option?&lt;/P&gt;&lt;P&gt;Partially you can achieve this via python scripting:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Set up a CSV with all your attributes&lt;/LI&gt;&lt;LI&gt;Iterate through the CSV file and set attributes via &lt;EM&gt;ce.setAttribute()&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Get all user set attributes: ce.getAttributeList()*&lt;/LI&gt;&lt;LI&gt;Write a new CSV with all your attributes&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/cityengine/latest/python/python-parameters-and-attributes.htm" target="_blank" rel="noopener"&gt;https://doc.arcgis.com/en/cityengine/latest/python/python-parameters-and-attributes.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* This will list you the user set cga attributes only, not all cga attributes.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 10:04:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/when-set-operation-is-used-update-inspector/m-p/1133777#M10649</guid>
      <dc:creator>JonasObertuefer</dc:creator>
      <dc:date>2022-01-14T10:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: When set operation is used - update inspector</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/when-set-operation-is-used-update-inspector/m-p/1218568#M10685</link>
      <description>&lt;P&gt;What Jonas says is correct.&amp;nbsp; There also is another way to use csv files without python.&amp;nbsp; You could store your attribute settings in the csv file.&amp;nbsp; Then, in cga code, you could read the csv file using &lt;FONT face="courier new,courier"&gt;readStringTable()&lt;/FONT&gt; and set rule attributes according to what's in the csv file.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 11:29:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/when-set-operation-is-used-update-inspector/m-p/1218568#M10685</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2022-10-04T11:29:01Z</dc:date>
    </item>
  </channel>
</rss>

