MayaでMELスクリプトを作成しました。だから、ジョイントを選択してから、MELスクリプトを実行してジョイントとそのすべての子を選択します。私はMELがとても新しいので、コードを実行するとエラーが発生します。あなたは私がエラーを減らすのを助けることができますか、それらのすべてを取り除くために良い?Maya - Maya MELで文字のすべての節点を選択
スクリプト:
string $joints[];
string $current[] = 'ls -selection';
proc selectJoints(){
if ('searchJoints($joints)' == 0){
$joints['size($joints)'] = $current[0];
pickWalk -d down;
$current[0] = 'ls -sl';
selectJoints();
}
else{
pickWalk -d right;
$current[0] = 'ls -sl';
if('searchJoints($joints)' == 0){
selectJoints();
}
else{
pickWalk -d up;
$current[0] = 'ls -sl';
if($current[0] == $joints[0]){
selectJoints();
}
}
}
return;
}
select ($Joints);
proc int searchJoints (string $jns[]){
int $result = 0;
for ($joint in $jns[]){
if ($current[0] == $joint){
return 1;
}
}
return 0;
}
ありがとう!