View Full Version : problem updating vert colors after polyop.SetMapVert
3rd Dimentia 05-31-2009, 12: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.
|
|
SyncViewS
05-31-2009, 05:11 PM
Hi Chris,
a similar problem has been reported with meshOp.SetMapVert, in this thread (http://forums.cgsociety.org/showthread.php?f=98&t=757799). 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
3rd Dimentia
06-01-2009, 02:59 AM
Thanks for the reply, but unfortunately it didn't solve the poly version of the problem.
Cg.
CGTalk Moderation
06-01-2009, 02:59 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.