|
Hello guys,
I am writing a script in mel to transfer a skinweight map to a blendshape weight map.
The script works so far, but I have some massive speed issues to heavy meshes.
This is the way I am doing it:
for($i=0;$i<$controlPointCounts[0];$i++)
{
$val =`skinPercent -t $eachArea -q $skin[0] ($geo+”.vtx["+$i+"]")` ;
setAttr ($splitBS[0]+”.it[0].itg[0].tw["+$i+"]") $val;
}
I got no speed issue with the skinpercent but the settAttr is very slow.
I was actually thinking to write it in python or Pymel and see if I can get a speed improvement, but I couldn’t find any command related to the Maya API to access and edit the blendShape weight map.
Any idea?
Thanks
Maurizio
|
|
|