Marcel
12-03-2003, 04:05 PM
I'm having a small problem with vertex colors: I'm using a script for exporting some objects which may or may not have vertex colors applied.
When an object has no vertex colors applied it still returns the values 0 0 0 when the vertex color is queried. But in the viewport the object doesn't have vertex colors.
How can I detect if an object has vertex colors applied or not?
I've tried using 'listConnections -type polyColorPerVertex' to see if the mesh has a vertex color node attached to it, but I couldn't get it to work....somehow not all meshes with vertex colors have this node attached to it.
(Or alternatively, is there a command that makes all vertex colors visible (without destroying the present vertex colors) in the viewport so that I can see the objects without vertex colors applied?)
When an object has no vertex colors applied it still returns the values 0 0 0 when the vertex color is queried. But in the viewport the object doesn't have vertex colors.
How can I detect if an object has vertex colors applied or not?
I've tried using 'listConnections -type polyColorPerVertex' to see if the mesh has a vertex color node attached to it, but I couldn't get it to work....somehow not all meshes with vertex colors have this node attached to it.
(Or alternatively, is there a command that makes all vertex colors visible (without destroying the present vertex colors) in the viewport so that I can see the objects without vertex colors applied?)
