Returns the color coordinates for this triangle point as a 1-dimensional Array, with a Byte value (from 0 to 255) for each of the color components (RGBA) (see DataTypes).
// get accessor Object rtn = TrianglePoint.ColorArray; |
set root = application.activeproject.activescene.root
set obj = root.addgeometry( "Cube", "MeshSurface" )
CreateVertexColorSupport ,, obj
set triangle = obj.activeprimitive.geometry.triangles(0)
for each p in triangle.Points
a = p.ColorArray
logmessage "p.color: " & a(0) & "," & a(1) & "," & a(2) & "," & a(3)
next
|