<?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: Importing a obstacle map in python in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/importing-a-obstacle-map-in-python/m-p/85982#M1197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok, so.... nevermind. Suddenly, and I'm not exactly sure why, it is working just fine. *shrugs*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not terribly certain what I did differently.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Dec 2012 20:04:28 GMT</pubDate>
    <dc:creator>RobHoward</dc:creator>
    <dc:date>2012-12-27T20:04:28Z</dc:date>
    <item>
      <title>Importing a obstacle map in python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/importing-a-obstacle-map-in-python/m-p/85981#M1196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm writing a python script to automate some stuff, and one of the things I'd like to automate is setting up an obstacle map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Importing the obstacle map file is no trouble, but for it to function as an obstacle map, it needs to have the layer attribute&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attr obstacle = brightness &amp;lt; 0.5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So after importing the png file and naming it "Obstacle," I'm trying to use the setLayerAttributes command to give this map layer the attribute needed for it to work as an obstacle map, like so:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; #set layer attribute for obstacle layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obstacle = ce.getObjectsFrom(ce.scene, ce.isLayer, ce.withName("'Obstacle'"))[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ce.setLayerAttributes(obstacle, "attr obstacle = brightness &amp;lt; 0.5")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when I run this script, it doesn't seem to assign the layer attribute. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this the right way to go about automating obstacle map importing in python?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 16:02:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/importing-a-obstacle-map-in-python/m-p/85981#M1196</guid>
      <dc:creator>RobHoward</dc:creator>
      <dc:date>2012-12-27T16:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a obstacle map in python</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/importing-a-obstacle-map-in-python/m-p/85982#M1197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok, so.... nevermind. Suddenly, and I'm not exactly sure why, it is working just fine. *shrugs*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not terribly certain what I did differently.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 20:04:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/importing-a-obstacle-map-in-python/m-p/85982#M1197</guid>
      <dc:creator>RobHoward</dc:creator>
      <dc:date>2012-12-27T20:04:28Z</dc:date>
    </item>
  </channel>
</rss>

