MAYA 绑定 选一点,列出影响它的骨头们的权重

版权声明:大家好,我是笨笨,笨笨的笨,笨笨的笨,转载请注明出处,谢谢! https://blog.csdn.net/jx520/article/details/83341627
//选一点,列出影响它的骨头们的权重

string $selection[] = `ls -sl`;

string $vertexName = $selection[0];
string $meshName = `substitute "\\..*" $vertexName ""`;
string $cluster = `findRelatedSkinCluster $meshName`;

float $weightValues[] = `skinPercent -query -value $cluster $vertexName`;
string $infJoints[] = `skinCluster -query -inf $vertexName`;

int $i,$count = size($weightValues);
print("---------------------------------------------------\n");
print("<<< " + $vertexName + ">>> influence Joint's weight : \n");
for ($i = 0 ; $i < $count; $i++ )
{
	print ($infJoints[$i] + " : " + $weightValues[$i] + "\n");
}
print("---------------------------------------------------\n");

猜你喜欢

转载自blog.csdn.net/jx520/article/details/83341627