<?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: Randomising facade textures in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/randomising-facade-textures/m-p/84775#M1187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Caroline.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's taken some time, but watch this vid I made :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(watch in HD!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://video.arcgis.com/watch/1781/tutorial-13-facade-wizard"&gt;http://video.arcgis.com/watch/1781/tutorial-13-facade-wizard&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Oct 2012 09:34:13 GMT</pubDate>
    <dc:creator>MatthiasBuehler1</dc:creator>
    <dc:date>2012-10-08T09:34:13Z</dc:date>
    <item>
      <title>Randomising facade textures</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/randomising-facade-textures/m-p/84771#M1183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently creating a model of a city and I'd like my rule file to pick a random texture based on the building's height(like the Philadelphia example). I've organised all my photos into files based on the number of floors with multiple textures for each floor, however everytime I generate the buildings it always uses the same texture for each building with the same number of floors and not utilising the others. How does the fileRandom function work exactly- does it iterate everytime you run the rule or by individual feature? I've attached my rule file to make it a bit clearer, it might be as a result of how I've written it!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In a different point altogether, it would be really great if you could within the help files explain how to setup the projections for projecting on to buildings and roofs so everything aligns correctly because it's something I know I've personally found difficult!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be great!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Caroline&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 09:54:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/randomising-facade-textures/m-p/84771#M1183</guid>
      <dc:creator>CarolineSteer</dc:creator>
      <dc:date>2012-05-17T09:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Randomising facade textures</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/randomising-facade-textures/m-p/84772#M1184</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;SPAN&gt;I guess for your specific use it may be easier to use the Facade Wizard instead of creating complex rules which need to pull indices such it is the case in e.g. the City Wizard's Textured City.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll try to prepare something for you, ok ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 12:08:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/randomising-facade-textures/m-p/84772#M1184</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-05-21T12:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Randomising facade textures</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/randomising-facade-textures/m-p/84773#M1185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Matthias,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've not yet done anything with Facade Wizard so that would be incredibly useful if you build similar using this!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Caroline&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 11:15:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/randomising-facade-textures/m-p/84773#M1185</guid>
      <dc:creator>CarolineSteer</dc:creator>
      <dc:date>2012-05-22T11:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Randomising facade textures</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/randomising-facade-textures/m-p/84774#M1186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi Caroline,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you meanwhile download tutorial 13 and check the html tutorial docs which are stored in the project ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm very busy again and have to check when I finally get some time to help you with this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sure it will help you meanwhile.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 12:01:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/randomising-facade-textures/m-p/84774#M1186</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-05-24T12:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Randomising facade textures</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/randomising-facade-textures/m-p/84775#M1187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Caroline.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's taken some time, but watch this vid I made :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(watch in HD!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://video.arcgis.com/watch/1781/tutorial-13-facade-wizard"&gt;http://video.arcgis.com/watch/1781/tutorial-13-facade-wizard&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 09:34:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/randomising-facade-textures/m-p/84775#M1187</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-10-08T09:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Randomising facade textures</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/randomising-facade-textures/m-p/84776#M1188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can't get fileRandom to work to assign random textures.&amp;nbsp; This is the way I want to do it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
attr txtIdent = ""

attr txtPath = "images/New Textures_test/"
attr txtExt = ".jpg"

buildingSide--&amp;gt;
case txtIdent == "":
 setupProjection(0, scope.xy, '1, '1)
 texture(fileRandom(txtPath+"*"+txtExt)
 projectUV(0)
else:
 texture(txtPath+txtIdent+txtExt)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but I have also tried like this, assigning the random file to a constant first as per tutorial 7&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
const myRandomTxt= fileRandom("images/New Textures_test/*.jpg")
attr txtIdent = ""

attr txtPath = "images/New Textures_test/"
attr txtExt = ".jpg"

buildingSide--&amp;gt;
case txtIdent == "":
 setupProjection(0, scope.xy, '1, '1)
 texture(myRandomTxt)
...
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried moving the * around and including more and less of the file name but I get nothing in return.&amp;nbsp; And the textures work if I assign a txtIdent value.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:15:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/randomising-facade-textures/m-p/84776#M1188</guid>
      <dc:creator>BenLeslie1</dc:creator>
      <dc:date>2021-12-10T23:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Randomising facade textures</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/randomising-facade-textures/m-p/84777#M1189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;no spaces allowed in paths .. !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 15:36:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/randomising-facade-textures/m-p/84777#M1189</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2014-01-08T15:36:25Z</dc:date>
    </item>
  </channel>
</rss>

