<?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: Applying styles from within the rule in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/applying-styles-from-within-the-rule/m-p/290553#M3991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not really ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there's only this, but I don't suppose this makes you happy, because you need to copy the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Shape --&amp;gt;
 A2$Continue // note the $

style A1
attr height&amp;nbsp; = 5
attr col&amp;nbsp;&amp;nbsp; = 0
Continue --&amp;gt;
 extrude(height)
 color(col, col, col)


style A2
attr height&amp;nbsp; = 50
attr col&amp;nbsp;&amp;nbsp; = .5
Continue --&amp;gt;
 extrude(height)
 color(col, col, col)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 14:00:50 GMT</pubDate>
    <dc:creator>MatthiasBuehler1</dc:creator>
    <dc:date>2021-12-11T14:00:50Z</dc:date>
    <item>
      <title>Applying styles from within the rule</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/applying-styles-from-within-the-rule/m-p/290550#M3988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to apply the styles from within the rule file itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lets say i have a multiple facade styles and i would like to: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Randomize them, take a random facade style&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Choose a specific style based on some other parameters (eg. certain building envelopes are appropriate for certain facade styles)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 08:26:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/applying-styles-from-within-the-rule/m-p/290550#M3988</guid>
      <dc:creator>AleksandarLalovic</dc:creator>
      <dc:date>2014-05-26T08:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Applying styles from within the rule</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/applying-styles-from-within-the-rule/m-p/290551#M3989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wished for this also before. But the way you imagine it to work sadly does not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can call styles, but then, you need to have that CGA code within the style definition, which is very clumsy and unintuitive. I gave it up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;m.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 13:48:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/applying-styles-from-within-the-rule/m-p/290551#M3989</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2014-05-28T13:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Applying styles from within the rule</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/applying-styles-from-within-the-rule/m-p/290552#M3990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have and issue that let say my rule is a set of many parameters defining a building which are not all necessarely competable with each other (some times you get weired combinations which are not realy convincing). Styles on the other hand are a predefined configurations that work. And once a generate lets say a block of several buildings i would like each building to have one of the predefined facade styles istead of each of them having a variation of a default style.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would it be possible at least that once I generate a new model i start with one of the styles from the library (choose a random one out of the existing ones) instead of starting with a default style always?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 14:41:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/applying-styles-from-within-the-rule/m-p/290552#M3990</guid>
      <dc:creator>AleksandarLalovic</dc:creator>
      <dc:date>2014-05-28T14:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Applying styles from within the rule</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/applying-styles-from-within-the-rule/m-p/290553#M3991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not really ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there's only this, but I don't suppose this makes you happy, because you need to copy the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Shape --&amp;gt;
 A2$Continue // note the $

style A1
attr height&amp;nbsp; = 5
attr col&amp;nbsp;&amp;nbsp; = 0
Continue --&amp;gt;
 extrude(height)
 color(col, col, col)


style A2
attr height&amp;nbsp; = 50
attr col&amp;nbsp;&amp;nbsp; = .5
Continue --&amp;gt;
 extrude(height)
 color(col, col, col)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:00:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/applying-styles-from-within-the-rule/m-p/290553#M3991</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2021-12-11T14:00:50Z</dc:date>
    </item>
  </channel>
</rss>

