Set Vertex Colors

236 views
Skip to first unread message

Sebastian

unread,
Nov 28, 2010, 9:27:54 PM11/28/10
to Pymel Python Module for Maya
Hello I have a question about setting vertex colors with pyMel

pn = ls(sl=True)[0].getShape()

for i in range(10):
pn.vtx[i].setColor(datatypes.Color(1,0.5,0.5,1))


Sets just the vertex with index 0 but not the others - is there
something I'm doing wrong?

Thanks for enlightenment :),

seb

Paul Molodowitch

unread,
Dec 2, 2010, 7:58:07 AM12/2/10
to py...@googlegroups.com
Looks like a bug... added a ticket for it on the google project page.

- Paul


--
You received this message because you are subscribed to the Google Groups "Pymel Python Module for Maya" group.
To post to this group, send email to py...@googlegroups.com.
To unsubscribe from this group, send email to pymel+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pymel?hl=en.


Sebastian

unread,
Dec 2, 2010, 7:57:50 PM12/2/10
to Pymel Python Module for Maya
Yey, do I win something? ;)

Thanks, I feel less silly now..

Paul Molodowitch

unread,
Dec 3, 2010, 9:03:06 AM12/3/10
to py...@googlegroups.com
A (virtual) pat on the back. =)

- Paul

On Thu, Dec 2, 2010 at 4:57 PM, Sebastian <sschoellha...@gmail.com> wrote:
Yey, do I win something? ;)

Thanks, I feel less silly now..

--
Reply all
Reply to author
Forward
0 new messages