Hi all
I'm trying to alter the cga rule so that i can define building type based on a land type map.
I've followed this tutorial
Tutorial 3: Map control—CityEngine Tutorials | ArcGIS Desktop
which explains how to change the colour of buildings based on the land type. But now i would like to use the existing International city cga rule and create the building types according to a red / green / blue map... ie.
industrial = red, residential = green, commercial= blue.
i've tried copying in the code from the tutorial into the international city cga rule but not sure how i can get the rule to select the building type based on the RGB value....
// land use types
attr t_industrial = 0
attr t_commercial = 0
attr t_residential = 0
// color declarations
red = "#ffaaaa"
green = "#aaffaa"
blue = "#aaaaff"
white = "#ffffff"
// Functions
landuseTypeColor =
case t_industrial > t_commercial && t_industrial > t_residential : red
case t_commercial > t_industrial && t_commercial > t_residential : blue
case t_residential > t_industrial && t_residential > t_commercial : green
else : white
any ideas anyone? thanks in advance 
Neil