Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / Transfering skinCluster weight to blendShape weight. How to solve the speed issue?
  RSS 2.0 ATOM  

Transfering skinCluster weight to blendShape weight. How to solve the speed issue?
Rate this thread
 
56340
 
Permlink of this thread  
avatar
  • Total Posts: 5
  • Joined: 25 May 2010 08:23 AM

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



Replies: 0