Maya 2020 fundamentals - modelling the real world
Get halfway through a model and find it's an unworkable mess? Can't add edge loops where you need them? Can't subdivide a mesh properly? If any of this sounds familiar check this course out.
# 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