<?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: set attr color in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/set-attr-color/m-p/1369422#M11277</link>
    <description>&lt;P&gt;There's probably a better way, but here's the one I know.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#################
# Use Array

@Order(0)
attr Color_array = [0,0,0]

Lot1 --&amp;gt;
	color(Color_array[0], Color_array[1], Color_array[2]) 
	extrude(10)
	X.
##################


 	
#################
# OR

@Order(1)
@Range(min=0, max=1, stepsize=0.1)
attr Red = 0

@Order(2)
@Range(min=0, max=1, stepsize=0.1)
attr Green = 0

@Order(3)
@Range(min=0, max=1, stepsize=0.1)
attr Blue = 0

Lot2 --&amp;gt;
	color(Red, Green, Blue) 
	extrude(10) 
	X.
##################&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jan 2024 07:16:42 GMT</pubDate>
    <dc:creator>desert</dc:creator>
    <dc:date>2024-01-12T07:16:42Z</dc:date>
    <item>
      <title>set attr color</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/set-attr-color/m-p/1368803#M11274</link>
      <description>&lt;DIV&gt;version "2023.1"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;attr col=[1,1,1]&lt;/DIV&gt;&lt;DIV&gt;lot--&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;extrude(30) color(col)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;//I want to assign color attributes on the shape to the extruded model&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Jan 2024 10:45:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/set-attr-color/m-p/1368803#M11274</guid>
      <dc:creator>biaozeng</dc:creator>
      <dc:date>2024-01-11T10:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: set attr color</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/set-attr-color/m-p/1368821#M11275</link>
      <description>&lt;P&gt;A possible way to represent this would be:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;@Color
attr col = "#FFFFFF"

lot--&amp;gt;
  color(col) 
  extrude(30)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 11:29:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/set-attr-color/m-p/1368821#M11275</guid>
      <dc:creator>plfontes</dc:creator>
      <dc:date>2024-01-11T11:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: set attr color</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/set-attr-color/m-p/1369336#M11276</link>
      <description>&lt;P&gt;If the color attribute on my shape data is RGB value, how should it be converted&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 01:21:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/set-attr-color/m-p/1369336#M11276</guid>
      <dc:creator>biaozeng</dc:creator>
      <dc:date>2024-01-12T01:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: set attr color</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/set-attr-color/m-p/1369422#M11277</link>
      <description>&lt;P&gt;There's probably a better way, but here's the one I know.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#################
# Use Array

@Order(0)
attr Color_array = [0,0,0]

Lot1 --&amp;gt;
	color(Color_array[0], Color_array[1], Color_array[2]) 
	extrude(10)
	X.
##################


 	
#################
# OR

@Order(1)
@Range(min=0, max=1, stepsize=0.1)
attr Red = 0

@Order(2)
@Range(min=0, max=1, stepsize=0.1)
attr Green = 0

@Order(3)
@Range(min=0, max=1, stepsize=0.1)
attr Blue = 0

Lot2 --&amp;gt;
	color(Red, Green, Blue) 
	extrude(10) 
	X.
##################&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 07:16:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/set-attr-color/m-p/1369422#M11277</guid>
      <dc:creator>desert</dc:creator>
      <dc:date>2024-01-12T07:16:42Z</dc:date>
    </item>
  </channel>
</rss>

