Color set types

21 views
Skip to first unread message

Alexander Berx

unread,
Jun 29, 2018, 5:04:48 AM6/29/18
to Python Programming for Autodesk Maya
Hi all,

I'm writing a script for generating rest position color sets. I first wrote a version using Maya cmds but since it was a bit slow I did a rewrite using the Maya api.
Everything is working but when I create a colorset using the api it's always of the type RGBA however I would need RGB.

I just create the colorset like this:
dag_path = OpenMaya.MDagPath()
sel_iterator.getDagPath(dag_path)
mesh_fn = OpenMaya.MFnMesh(dag_path)
mesh_fn.createColorSetWithName('rest')

There isn't any option for the type I can see in the api. Does anybody have an idea how this could be achieved?

Thanks in advance!


Cheers,
Alexander
Reply all
Reply to author
Forward
0 new messages