for i in range(cnt):
x = random.uniform(0.2,1)
y = random.uniform(0.2,1)
z = random.uniform(0.2,1)
vect = c4d.Vector(x,y,z)
# marr[i].Scale(float(i/10))
marr[i].Scale(vect)
Color
carr = moData.GetArray(c4d.MODATA_COLOR) # Color Array
# Gray Scale
# carr[0] = c4d.Vector(0.5)
for i in range(cnt):
r = random.random()
g = random.random()
b = random.random()
carr[i] = c4d.Vector(r,g,b)
# Update Color Array
moData.SetArray(c4d.MODATA_COLOR, carr, hasField)
References
C4D SDK Documentation
Formula
Documentation
Alternate intensity based on row number (Animate over time)
mod((id/5);2)?(t;-t)
Animate over time based on the row number sequence