Hi,I've attached a minimal example:Rule-File:
attr myColor = 50%: "#ff7777" 
               else: "#58FA58"
 
Lot  --> extrude(10) color(myColor)
Material-File with filesize option:newmtl Lot_1
    Kd 0.345098 0.980392 0.345098
    Ka 0 0 0
     d 1
    Tf 1.0 1.0 1.0
    Ni 1.0
 illum 3
    Ks 0 0 0
    Ns 0
newmtl Lot
    Kd 1 0.466667 0.466667
    Ka 0 0 0
     d 1
    Tf 1.0 1.0 1.0
    Ni 1.0
 illum 3
    Ks 0 0 0
    Ns 0
As expected, two colors.With file_per_shape option I also got only one material-file with content:newmtl Lot_30
    Kd 1 0.466667 0.466667
    Ka 0 0 0
     d 1
    Tf 1.0 1.0 1.0
    Ni 1.0
 illum 3
    Ks 0 0 0
    Ns 0