Notifications
Clear all
[Closed] problem updating vert colors after polyop.SetMapVert
May 31, 2009 1:32 pm
I’m using polyop.SetMapVert to set vertex colors with a script. The script basically lets you seperately set the R,G and B channels of vertex colors of selected verts. The first couple of times I set it, it updates fine in the viewport, but after about 3-4 times it stops updating. If I add an edit poly or an unwrap to the object, it then shows the correct vert colors so I know it’s being set in there somewhere, but it’s just not updating. I’ve tried “update”, but no luck.
Cheers,
Cg.
2 Replies
May 31, 2009 1:32 pm
Hi Chris,
a similar problem has been reported with meshOp.SetMapVert, in this thread. I suggested a workaroud which could work for Editable Polys too:
-- assuming $ is the Editable Poly you want to update
polyOp.setNumMaps $ (polyOp.getNumMaps $) -- actually doesn't do anything
ForceCompleteRedraw()
- Enrico
May 31, 2009 1:32 pm
Thanks for the reply, but unfortunately it didn’t solve the poly version of the problem.
Cg.