Introduction to Maya - Modeling Fundamentals Vol 2
This course will look in the fundamentals of modeling in Maya with an emphasis on creating good topology. It's aimed at people that have some modeling experience in Maya but are having trouble with complex objects.
# 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