Biohazard
10-01-2009, 02:59 PM
Hi,
I've got a problem with vertex colors.
- I know the position for vertex 1 in a mesh using $.GetVertex 1
- I know the color for vertex 1 in channel 0 using polyop.getMapVert $ 0 1
But as the index for vertex color can be (will be) greater than the total amount of vertices in the editable_poly, I can't find any way to remap these colors or determine whether it's the right vertex or not. Say I'd like to pair vertices from different meshes by position then remap the vertex color accordingly. As the index are different and arbitrary, my remap function is f***ked (sob).
Bottom line, I lack the position info for each vc:0 in the map channel.
Am I doing something wrong (both editable_mesh and Editable_polys methods seem to behave the same way)? Any ideas?
Thanks.
I've got a problem with vertex colors.
- I know the position for vertex 1 in a mesh using $.GetVertex 1
- I know the color for vertex 1 in channel 0 using polyop.getMapVert $ 0 1
But as the index for vertex color can be (will be) greater than the total amount of vertices in the editable_poly, I can't find any way to remap these colors or determine whether it's the right vertex or not. Say I'd like to pair vertices from different meshes by position then remap the vertex color accordingly. As the index are different and arbitrary, my remap function is f***ked (sob).
Bottom line, I lack the position info for each vc:0 in the map channel.
Am I doing something wrong (both editable_mesh and Editable_polys methods seem to behave the same way)? Any ideas?
Thanks.
