  | | | scripting - getting vertex colors | scripting - getting vertex colors 2005-03-21 - By Bernard Lebel
Back Here is a little piece of Python code I wrote for that:
# Create empty list to store RGBA values for point aValues = [] # Iterate triangles of grid for oTriangle in oMesh.activeprimitive.geometry.triangles:
# Iterate points of triangle for oTrianglePoint in oTriangle.points: aValues.append( oTrianglePoint.color.Red ) aValues.append( oTrianglePoint.color.Green ) aValues.append( oTrianglePoint.color.Blue ) aValues.append( oTrianglePoint.color.Alpha )
Cheers Bernard
peter@(protected) wrote: > hey > > a really simple one i think. How do i loop through the vertices of an object, > and read the vertex colors one by one, and then set them again afterwards? I > cant make it work... > > peter > > > > --- > Unsubscribe? Mail Majordomo@(protected) with the following text in body: > unsubscribe xsi > > >
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |