<?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 Building Construction.cga - transparency in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/building-construction-cga-transparency/m-p/528826#M7215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently using this ESRI written rule to create possible building development models and am trying ti use use a transparency effect to differentiate between existing buildings and the possible developments.&amp;nbsp; I'm using "Footprints" as the start rule.&amp;nbsp; However, the transparency slider has no affect on generated models. Have any of you used this functionality successfully? If so what how were other parameters set that may alter this function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It certainly seems simple enough function so I'm curious if I've set a parameter that renders the transparency inoperable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It turns out the original script is missing one line to enable transparency in the Footprint start rule. &lt;STRONG&gt;Add this line as shown in bold below to correct:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# This extrudes the footprint shape (for each unit if multiple units) up to the height of the full mass.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;# Incoming parameters idx and n refer to the separate units (rather than floors as seen later in the rule). &lt;/EM&gt;&lt;BR /&gt;Footprint(idx,n) --&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt; &amp;nbsp;set (material.opacity, Transparency)&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;alignScopeToAxes(y) s('1,0,'1) t(0,Elevation-scope.elevation,0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Foundation&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;t(0, foundationHeightAdjusted, 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;report("Building, Footprint Area (m2)", geometry.area)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;report("Parcel, Coverage (%)", geometry.area/Lot_Area*100)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;extrude(getHeight(idx,n)) &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Envelope&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;sg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Sep 2019 15:57:52 GMT</pubDate>
    <dc:creator>ScottGowan</dc:creator>
    <dc:date>2019-09-16T15:57:52Z</dc:date>
    <item>
      <title>Building Construction.cga - transparency</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/building-construction-cga-transparency/m-p/528826#M7215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently using this ESRI written rule to create possible building development models and am trying ti use use a transparency effect to differentiate between existing buildings and the possible developments.&amp;nbsp; I'm using "Footprints" as the start rule.&amp;nbsp; However, the transparency slider has no affect on generated models. Have any of you used this functionality successfully? If so what how were other parameters set that may alter this function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It certainly seems simple enough function so I'm curious if I've set a parameter that renders the transparency inoperable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It turns out the original script is missing one line to enable transparency in the Footprint start rule. &lt;STRONG&gt;Add this line as shown in bold below to correct:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# This extrudes the footprint shape (for each unit if multiple units) up to the height of the full mass.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;# Incoming parameters idx and n refer to the separate units (rather than floors as seen later in the rule). &lt;/EM&gt;&lt;BR /&gt;Footprint(idx,n) --&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt; &amp;nbsp;set (material.opacity, Transparency)&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;alignScopeToAxes(y) s('1,0,'1) t(0,Elevation-scope.elevation,0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Foundation&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;t(0, foundationHeightAdjusted, 0)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;report("Building, Footprint Area (m2)", geometry.area)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;report("Parcel, Coverage (%)", geometry.area/Lot_Area*100)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;extrude(getHeight(idx,n)) &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Envelope&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;sg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2019 15:57:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/building-construction-cga-transparency/m-p/528826#M7215</guid>
      <dc:creator>ScottGowan</dc:creator>
      <dc:date>2019-09-16T15:57:52Z</dc:date>
    </item>
  </channel>
</rss>

