Complex UV Layout in Maya
Over the last couple of years UV layout in Maya has changed for the better. In this course we're going to be taking a look at some of those changes as we UV map an entire character
# 1 07-12-2016 , 03:06 PM
Registered User
Join Date: Dec 2016
Posts: 1

little problem with mel script

$selected = `ls -sl`;
for( $form in $selected ) {
select $form;
string $name = $form;
int $count[] = `polyEvaluate -v $form` ;
select ($name +".vtx [0:" + ($count[0] - 1) + "]");
$nodes = `ls -sl`;
for($node in $nodes){
select $node;
float $pos[] = `xform -q -t -ws`;
move -r 0 0 ($pos[1]*1.732);
}
};
i'd like to move every vertex of the selected object based on their height, but instead of moving everyone of them it moves the object itself, any suggestion?


Last edited by mich95; 14-12-2016 at 05:00 PM.
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads