PDA

View Full Version : joint influence on selected vertices in maya


rushi
02-01-2011, 07:49 PM
Hi all,

I am doing Some Game Rig. So vertex can't be weighted to more than 3 bones.

So how Can I Check How many joint influences is there for selected vertices .

Any Idea How can I check this with Script !!


Rushi

NaughtyNathan
02-01-2011, 08:17 PM
skinCluster -q -inf mesh.vtx[25];:nathaN

rushi
02-23-2011, 04:30 PM
Hi nathaN,

Thanks for reply & sorry for my late reply.

Insted of skinCluster skinPercent worked for me.


global proc findBadVertex(string $skinCluster)
{

string $sel[] = `ls -sl -fl`;



for($i=0;$i<size($sel);$i++)

{
string $ver = `select $sel[$i]`;

string $infJnt[] = `skinPercent -q -t $skinCluster $sel[$i]`;



if(size($infJnt)>4)
{
print ($sel[$i]+"Has more then 4 joint's infulance\n ");
print $infJnt;
}
}
}



Dave

CGTalk Moderation
02-23-2011, 04:30 PM
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.