<?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 Random Texture with Inspector Override in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/random-texture-with-inspector-override/m-p/515008#M6975</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello CE Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for a way to override randomized textures. It would be nice to have the ability to change the textures with a drop-down menu in the inspector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Sep 2020 23:37:33 GMT</pubDate>
    <dc:creator>BenHammer1</dc:creator>
    <dc:date>2020-09-04T23:37:33Z</dc:date>
    <item>
      <title>Random Texture with Inspector Override</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/random-texture-with-inspector-override/m-p/515008#M6975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello CE Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for a way to override randomized textures. It would be nice to have the ability to change the textures with a drop-down menu in the inspector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2020 23:37:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/random-texture-with-inspector-override/m-p/515008#M6975</guid>
      <dc:creator>BenHammer1</dc:creator>
      <dc:date>2020-09-04T23:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Random Texture with Inspector Override</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/random-texture-with-inspector-override/m-p/515009#M6976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just use a stochastic rule in your attribute. This will randomize on seed generation and then give you the ability to change it.&amp;nbsp; Something like the code below should work.&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;@Enum("texA.jpg","texA.jpg","texC.jpg","texD.jpg")

attr Texture = &amp;nbsp;25%: "texA.jpg"
                25%: "texB.jpg"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;25%: "texC.jpg"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else: "texD.jpg"‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:30:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/random-texture-with-inspector-override/m-p/515009#M6976</guid>
      <dc:creator>DevinLavigne</dc:creator>
      <dc:date>2021-12-11T22:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Random Texture with Inspector Override</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/random-texture-with-inspector-override/m-p/515010#M6977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are trying to activate browse tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the texture folder wildcard method:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;attr wall_tex = getWallTexture
getWallTexture  = listRandom(_getWallTexture)
_getWallTexture = fileSearch("/FolderDestination*" + "*.*")
‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then over in the inspector you should be able to access the "browse" to override your texture:&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/506909_CityEngine Browse.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also think you can activate the browse by simply adding the "@File" before your attribute rule (?).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:30:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/random-texture-with-inspector-override/m-p/515010#M6977</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T22:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Random Texture with Inspector Override</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/random-texture-with-inspector-override/m-p/515011#M6978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that is correct.&amp;nbsp; The &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;@File&lt;/SPAN&gt; annotation&amp;nbsp;allows you to open a file chooser.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://doc.arcgis.com/en/cityengine/latest/cga/cga-annotations.htm#GUID-10875201-277F-4C28-964B-AA092E825407" title="https://doc.arcgis.com/en/cityengine/latest/cga/cga-annotations.htm#GUID-10875201-277F-4C28-964B-AA092E825407"&gt;Annotations—ArcGIS CityEngine Resources | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2020 15:27:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/random-texture-with-inspector-override/m-p/515011#M6978</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2020-09-15T15:27:11Z</dc:date>
    </item>
  </channel>
</rss>

