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