<?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: Adjust the probability that a building is created on a lot in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/adjust-the-probability-that-a-building-is-created/m-p/43038#M586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attr yourPercentage = rand&amp;nbsp;&amp;nbsp;&amp;nbsp; #same as rand(0,1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LShape --&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;case p(yourPercentage): shapeL(wingWidth, wingWidth) { shape : LFootprint }&lt;/P&gt;&lt;P style="padding-left: 30px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;else : rotateScope(0, 90, 0) shapeL(wingWidth, wingWidth) { shape : LFootprint }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Mar 2015 16:26:28 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2015-03-16T16:26:28Z</dc:date>
    <item>
      <title>Adjust the probability that a building is created on a lot</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/adjust-the-probability-that-a-building-is-created/m-p/43037#M585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P&gt;In the example from Tutorial 8: Mass modelling, is there a possibility to replace hardcoded percentage with an attribute? So instead of 50% to have the attribute there that can be adjusted from 0% to 100% in the inspector?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LShape --&amp;gt; &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;50% : shapeL(wingWidth, wingWidth) { shape : LFootprint }&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;else : rotateScope(0, 90, 0) shapeL(wingWidth, wingWidth) { shape : LFootprint }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way to control an overall volume of buildings that CE creates in an area consisting of many lots, and I thought that one way to achieve that is to adjust the probability that a building is created on a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 13:54:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/adjust-the-probability-that-a-building-is-created/m-p/43037#M585</guid>
      <dc:creator>PetrBocharnikov</dc:creator>
      <dc:date>2015-03-16T13:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust the probability that a building is created on a lot</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/adjust-the-probability-that-a-building-is-created/m-p/43038#M586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attr yourPercentage = rand&amp;nbsp;&amp;nbsp;&amp;nbsp; #same as rand(0,1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LShape --&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;case p(yourPercentage): shapeL(wingWidth, wingWidth) { shape : LFootprint }&lt;/P&gt;&lt;P style="padding-left: 30px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;else : rotateScope(0, 90, 0) shapeL(wingWidth, wingWidth) { shape : LFootprint }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 16:26:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/adjust-the-probability-that-a-building-is-created/m-p/43038#M586</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-03-16T16:26:28Z</dc:date>
    </item>
  </channel>
</rss>

