MEL
//pmxEnglishNameにpmxNameを突っ込むやつ
string $nodes[] = `ls -selection`;
for ($node in $nodes)
{
string $PMXname = `getAttr ($node + ".pmxName")`;
setAttr -type "string" ($node + ".pmxEnglishName") $PMXname;
}
//boneの半径変更
for( $work in `ls -sl` ){
setAttr ($work+".radius") 0.1;
};
//Boneの方向をAll 0
string $nodes[] = `ls -selection`;
for ($node in $nodes)
{
setAttr ($node+".jointOrientX") 0;
setAttr ($node+".jointOrientY") 0;
setAttr ($node+".jointOrientZ") 0;
}
//Triangleを一意のTriangleUVにまとめるぞ
int $shellCount[] = `polyEvaluate -uvShell`;
for ($i = 0; $i < $shellCount[0]; $i++){
int $count = 0;
string $list[] = `polyEvaluate -uvsInShell($i)`;
string $vertexs[] = `ls -fl $list`;
for ($m in $vertexs){
select $m;
if($count == 0){
polyEditUV -uValue(0) -vValue(0) -relative false;
$count++;
}else if($count == 1){
polyEditUV -uValue(1) -vValue(0) -relative false;
$count++;
}else if($count == 2){
polyEditUV -uValue(0) -vValue(1) -relative false;
$count++;
}else{
polyEditUV -uValue(1) -vValue(1) -relative false;
}
}
}