That definitely set me in the right direction. I'm now able to change the color of the spatial material. The problem is now that when I run the code, it changes ALL of the instances of the guys shirts to the last color issued.
(Example: I have 10 guys in the scene, and I run the code.
for guy in range(10):
var Painted = (((((aThing as MeshInstance).mesh) as CubeMesh).material) as SpatialMaterial)
var somecolorR = (randi()%200)/200.0
var somecolorG = (randi()%200)/200.0
var somecolorB = (randi()%200)/200.0
Painted.albedo_color = Color(somecolorR,somecolorG,somecolorB)
ALL of my guys now have the same color shirt. (Granted, before it was grey, and now they all have a color, but it's all the same color.)
Any idea of what I'm doing wrong, or what I should do to make it so that all of my guys get different colors as they're rendered?
Thanks again for the help - you really steered me down the right path!