<?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 Make the facade orderly and random in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/make-the-facade-orderly-and-random/m-p/1572032#M11487</link>
    <description>&lt;P&gt;&lt;SPAN&gt;How to assign the same seed to listRandom? I have divided the ground facade and the up facade in the same elevation CGA. I hope that they can index to the consistent textures when using listRandom for randomization. For example: In the "Upperfloors" folder, there are (u_f009_t006_Residential_000.jpg; u_f009_t006_Residential_001.jpg; u_f009_t006_Residential_002.jpg). In the "Groundfloors" folder, there are (u_f009_t006_Residential_000.jpg; g_f003_t006_Residential_001.jpg; g_f001_t006_Residential_002.jpg). I hope that they can be matched according to the serial numbers on the left side of the.jpg. (u_f009_t006_Residential_000.jpg and u_f009_t006_Residential_000.jpg) (u_f009_t006_Residential_001.jpg and g_f003_t006_Residential_001.jpg) (u_f009_t006_Residential_002.jpg and g_f001_t006_Residential_002.jpg) &lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2025 07:03:47 GMT</pubDate>
    <dc:creator>biaozeng</dc:creator>
    <dc:date>2025-01-02T07:03:47Z</dc:date>
    <item>
      <title>Make the facade orderly and random</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/make-the-facade-orderly-and-random/m-p/1572032#M11487</link>
      <description>&lt;P&gt;&lt;SPAN&gt;How to assign the same seed to listRandom? I have divided the ground facade and the up facade in the same elevation CGA. I hope that they can index to the consistent textures when using listRandom for randomization. For example: In the "Upperfloors" folder, there are (u_f009_t006_Residential_000.jpg; u_f009_t006_Residential_001.jpg; u_f009_t006_Residential_002.jpg). In the "Groundfloors" folder, there are (u_f009_t006_Residential_000.jpg; g_f003_t006_Residential_001.jpg; g_f001_t006_Residential_002.jpg). I hope that they can be matched according to the serial numbers on the left side of the.jpg. (u_f009_t006_Residential_000.jpg and u_f009_t006_Residential_000.jpg) (u_f009_t006_Residential_001.jpg and g_f003_t006_Residential_001.jpg) (u_f009_t006_Residential_002.jpg and g_f001_t006_Residential_002.jpg) &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 07:03:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/make-the-facade-orderly-and-random/m-p/1572032#M11487</guid>
      <dc:creator>biaozeng</dc:creator>
      <dc:date>2025-01-02T07:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Make the facade orderly and random</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/make-the-facade-orderly-and-random/m-p/1572043#M11488</link>
      <description>&lt;P&gt;I used this function to achieve the desired result&lt;/P&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;string&lt;/SPAN&gt; listItem(&lt;SPAN class=""&gt;stringList&lt;/SPAN&gt;, &lt;SPAN class=""&gt;index&lt;/SPAN&gt;)&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Jan 2025 08:48:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/make-the-facade-orderly-and-random/m-p/1572043#M11488</guid>
      <dc:creator>biaozeng</dc:creator>
      <dc:date>2025-01-02T08:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Make the facade orderly and random</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/make-the-facade-orderly-and-random/m-p/1573818#M11494</link>
      <description>&lt;P&gt;I'm curious if you have a special reason for using "listItem"&lt;BR /&gt;I tested it using an array.&lt;BR /&gt;When extruded to 1m, it is treated as red;&lt;BR /&gt;when extruded to 5m, it is treated as green;&lt;BR /&gt;and when extruded to 10m, it is treated as blue."&lt;/P&gt;&lt;P&gt;I matched items in the same order from two arrays.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There might be a better way, but I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="desert_0-1736399468962.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123006iC0419DE1DAA8E047/image-size/medium?v=v2&amp;amp;px=400" role="button" title="desert_0-1736399468962.png" alt="desert_0-1736399468962.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;// Initialize height array for buildings
const bd_Height = [1, 5, 10]

// Initialize color array for buildings
const bd_Color = ["#FF0000", "#00FF00", "#0000FF"]

// Generate a random index based on the size of the height array
rand_index = floor(rand(size(bd_Height)))

Lot --&amp;gt;
    // Pass the random index to rule A
    A(rand_index)

A(value) --&amp;gt;
    // Extrude the shape based on the height from the bd_Height array
    extrude(bd_Height[value])
    // Set the color based on the value from the bd_Color array
    color(bd_Color[value])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 05:11:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/make-the-facade-orderly-and-random/m-p/1573818#M11494</guid>
      <dc:creator>desert</dc:creator>
      <dc:date>2025-01-09T05:11:34Z</dc:date>
    </item>
  </channel>
</rss>

