<?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 Mapping shapes from attributes in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/mapping-shapes-from-attributes/m-p/318558#M4385</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 want to mapped my shapes with differents representations, for example, i have shapes "parklands" which is divided into "forest", "garden", "flowers" ...., and i want to mapped these diferent area with images&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I am sorry if the question has been already posted, i didnt found answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Furthermore, how can i do a request to select models generated from a procedural rule?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example i want to select all the tree defined by Palm with the height&amp;gt;10 m, and select the model 3d and not the initial shape.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Feb 2013 12:51:12 GMT</pubDate>
    <dc:creator>amamalalalalal</dc:creator>
    <dc:date>2013-02-21T12:51:12Z</dc:date>
    <item>
      <title>Mapping shapes from attributes</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/mapping-shapes-from-attributes/m-p/318558#M4385</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 want to mapped my shapes with differents representations, for example, i have shapes "parklands" which is divided into "forest", "garden", "flowers" ...., and i want to mapped these diferent area with images&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I am sorry if the question has been already posted, i didnt found answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Furthermore, how can i do a request to select models generated from a procedural rule?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example i want to select all the tree defined by Palm with the height&amp;gt;10 m, and select the model 3d and not the initial shape.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 12:51:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/mapping-shapes-from-attributes/m-p/318558#M4385</guid>
      <dc:creator>amamalalalalal</dc:creator>
      <dc:date>2013-02-21T12:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping shapes from attributes</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/mapping-shapes-from-attributes/m-p/318559#M4386</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;To map textures based on the zone attribute, initialize that object attribute in CGA, then use it in the texture call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;E.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;@Range ("forest", "garden", "flowers")
attr myVegetationZone = "" # Point this to the object attribute !

Lot --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; setupProjection(0, scope.xz, 5, 5)
&amp;nbsp;&amp;nbsp;&amp;nbsp; projectUV(0)
&amp;nbsp;&amp;nbsp;&amp;nbsp; texture ( fileRandom( "assets/folder/" + myVegetationZone&amp;nbsp; + "*jpg")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Selecting by attribute must be done via Python currently. You have CityEngine Advanced ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's the reason why you want to specifically select Models ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:08:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/mapping-shapes-from-attributes/m-p/318559#M4386</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2021-12-11T15:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping shapes from attributes</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/mapping-shapes-from-attributes/m-p/318560#M4387</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;Thanks for the code it works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; But if i want to mapped for example the roads is it possible to follow the line and rotate uv, maybe it better works with the street graphs? I have CE Advanced yes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the code it is very interesting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Aurelien&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 12:33:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/mapping-shapes-from-attributes/m-p/318560#M4387</guid>
      <dc:creator>amamalalalalal</dc:creator>
      <dc:date>2013-02-28T12:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping shapes from attributes</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/mapping-shapes-from-attributes/m-p/318561#M4388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you mean texturing street shapes so the texture follows the curvature ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then you don't need the UV setup because all shapes produced by the 'Dynamic City Layouts' system already have UVs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Street --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; tileUV(0, ~5, ~5)
&amp;nbsp;&amp;nbsp;&amp;nbsp; texture("builtin:uvtest.png")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:08:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/mapping-shapes-from-attributes/m-p/318561#M4388</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2021-12-11T15:08:38Z</dc:date>
    </item>
  </channel>
</rss>

