PDA

View Full Version : most efficient way to set vertex skin weight values?


r4inm4ker
12-13-2010, 01:46 AM
Hi,
I have a script that need to add / scale different values on multiple vertices, i.e:

vtx[0] <> joint1 <> 0.4
vtx[23] <> joint1 <> 0.6
vtx[24] <> joint2 <> 1.0

currently the method i use it to iterate each of these vertices and set the value using skinPercent (i.e. skinPercent(pCube[1].vtx[0], tv=['joint',0.4]) , but the problem is, it loses interactivity once dealing with hundreds of vertices, so i think i need a better way to do that if i want to maintain the interactivity of my script. Is there any other command that could process this kind of operation, or I need to go plugin API way?

Thanks,
Jefri.

NateH
12-13-2010, 02:39 AM
Hamish McKenzie posted a much faster way to edit skin weights like this:
http://www.macaronikazoo.com/?p=417

r4inm4ker
12-13-2010, 02:46 AM
I'm looking into it now. Thanks a bunch for the link !

CGTalk Moderation
12-13-2010, 02:46 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.