<?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>idea styles are not setable with python in ArcGIS CityEngine Ideas</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-ideas/styles-are-not-setable-with-python/idi-p/1015106</link>
    <description>&lt;P&gt;i think they should have a get/set method&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jan 2021 17:34:22 GMT</pubDate>
    <dc:creator>romainjanil</dc:creator>
    <dc:date>2021-01-08T17:34:22Z</dc:date>
    <item>
      <title>styles are not setable with python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-ideas/styles-are-not-setable-with-python/idi-p/1015106</link>
      <description>&lt;P&gt;i think they should have a get/set method&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 17:34:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-ideas/styles-are-not-setable-with-python/idi-p/1015106</guid>
      <dc:creator>romainjanil</dc:creator>
      <dc:date>2021-01-08T17:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: styles are not setable with python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-ideas/styles-are-not-setable-with-python/idc-p/1016527#M184</link>
      <description>&lt;P&gt;agree with this 100%. Would be very nice to code into predefined styles.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 19:15:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-ideas/styles-are-not-setable-with-python/idc-p/1016527#M184</guid>
      <dc:creator>DevinLavigne</dc:creator>
      <dc:date>2021-01-13T19:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: styles are not setable with python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-ideas/styles-are-not-setable-with-python/idc-p/1017618#M185</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/72072"&gt;@romainjanil&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/200150"&gt;@DevinLavigne&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your input. With python it is indeed only possible to set attributes, but no styles.&lt;/P&gt;&lt;P&gt;The CE team is looking into this.&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thomas Fuchs&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 08:55:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-ideas/styles-are-not-setable-with-python/idc-p/1017618#M185</guid>
      <dc:creator>ThomasFuchs</dc:creator>
      <dc:date>2021-01-18T08:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: styles are not setable with python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-ideas/styles-are-not-setable-with-python/idc-p/1017721#M187</link>
      <description>&lt;P&gt;great, I didn't realized this wasn't possible till I tried to use a similar feature (pre set some geo styles with local attributes values inside a generic geo-typical rule file and call them depending on the shape geo-location)&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 17:50:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-ideas/styles-are-not-setable-with-python/idc-p/1017721#M187</guid>
      <dc:creator>romainjanil</dc:creator>
      <dc:date>2021-01-18T17:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: styles are not setable with python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-ideas/styles-are-not-setable-with-python/idc-p/1017726#M189</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/157103"&gt;@ThomasFuchs&lt;/a&gt;&amp;nbsp; - cga too right?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2021 17:58:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-ideas/styles-are-not-setable-with-python/idc-p/1017726#M189</guid>
      <dc:creator>DevinLavigne</dc:creator>
      <dc:date>2021-01-18T17:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: styles are not setable with python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-ideas/styles-are-not-setable-with-python/idc-p/1019556#M190</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/200150"&gt;@DevinLavigne&lt;/a&gt;&amp;nbsp;yes, from within CGA, it is not possible to set a style.&lt;/P&gt;&lt;P&gt;Styles can only be selected in the CE Inspector.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 08:55:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-ideas/styles-are-not-setable-with-python/idc-p/1019556#M190</guid>
      <dc:creator>ThomasFuchs</dc:creator>
      <dc:date>2021-01-25T08:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: styles are not setable with python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-ideas/styles-are-not-setable-with-python/idc-p/1082627#M205</link>
      <description>&lt;P&gt;This would be of great help in a number of projects. I've cobbled together a style creator (for external assets) in python but having a formal way of doing all of this would be nice.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 09:17:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-ideas/styles-are-not-setable-with-python/idc-p/1082627#M205</guid>
      <dc:creator>ElliotHartley</dc:creator>
      <dc:date>2021-07-26T09:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: styles are not setable with python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-ideas/styles-are-not-setable-with-python/idc-p/1131020#M214</link>
      <description>&lt;P&gt;I agree that a new way to get/set styles is the ideal here and came to find out if it was possible, which it is not.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But one workaround after you create the style is turn it back into a function.&amp;nbsp; &amp;nbsp;So a style gets transformed from:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;style SuperStyle
attr Color = "Red"&lt;/LI-CODE&gt;&lt;P&gt;Use a find and replace on your style selection:&lt;/P&gt;&lt;P&gt;Find:&amp;nbsp; "attr"&amp;nbsp; &amp;nbsp;Replace "set("&lt;/P&gt;&lt;P&gt;Find: "="&amp;nbsp; &amp;nbsp; &amp;nbsp; Replace ","&lt;/P&gt;&lt;P&gt;I can't get the carriage return to work for setting the " ) " so that's has to been done manually.&lt;/P&gt;&lt;P&gt;And then loop it back to ruleset however in the stack you placed it, probably all the way at the top.&lt;/P&gt;&lt;P&gt;Now your style is a function and can be used in conditional logic.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;SuperStyle--&amp;gt;
   set(Color,"Red")
   NextRule  //Your setting your attributes at the top of your ruleset and this a detour.
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But yeah, a get/set is what we need.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 21:48:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-ideas/styles-are-not-setable-with-python/idc-p/1131020#M214</guid>
      <dc:creator>Clover4</dc:creator>
      <dc:date>2022-01-05T21:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: styles are not setable with python - Status changed to: Under Consideration</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-ideas/styles-are-not-setable-with-python/idc-p/1210301#M244</link>
      <description />
      <pubDate>Wed, 07 Sep 2022 12:52:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-ideas/styles-are-not-setable-with-python/idc-p/1210301#M244</guid>
      <dc:creator>ChristianIten</dc:creator>
      <dc:date>2022-09-07T12:52:12Z</dc:date>
    </item>
  </channel>
</rss>

