Hey all,

Was wondering if anyone has experience creating color sets inside of a node
that outputs new mesh data. The node I'm working on is an Alembic Geo Cache
reader, forked from the Alembic project, which reads an Alembic cache file
and creates polyMesh outputs (among other things).

My understanding (which may be totally inaccurate) is that color sets are
part of the Mesh data, and therefore I could create them and set vert colors
per set like so:

#inside compute
mobj = outHandle.data()
MFnMesh fnMesh = MFnMesh(obj)
fnMesh.create(numVers, numPolys, pointList, polyCounts, polyCncts,
theParent) #create the mesh from data in the cache
fnMesh.createColorSetWithName("myAwesomeColorSet")
fnMesh.setFaceVertexColor(50, 0)
outHandle.set(mobj)

When I do this though, I don't see any colors or color sets on a shape
connected to the output attribute on the node (though the mesh shape itself
is there).

Can anyone shed some light on this for me?

Best,
JP




-- 
John Patrick
404-242-2675
[email protected]
http://www.canyourigit.com

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to