Solved! Go to Solution.
There's probably a better way, but here's the one I know.
#################
# Use Array
@Order(0)
attr Color_array = [0,0,0]
Lot1 -->
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 -->
color(Red, Green, Blue)
extrude(10)
X.
##################
A possible way to represent this would be:
@Color
attr col = "#FFFFFF"
lot-->
color(col)
extrude(30)
If the color attribute on my shape data is RGB value, how should it be converted
There's probably a better way, but here's the one I know.
#################
# Use Array
@Order(0)
attr Color_array = [0,0,0]
Lot1 -->
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 -->
color(Red, Green, Blue)
extrude(10)
X.
##################