Toggle navigation
Polycount
News
Forums
Patreon
Challenges
Quarterly Character Art Challenge
Bi-Monthly Environment Art Challenge
Wiki
Moar
Recent
Activity
Badges
Drafts
Store
Sign In
·
Register
Author:
velja_bvath
Home
›
Technical Talk
Maya 2010 polySelect -edgeRingPattern; does not work?
malcolm
polycount sponsor
Offline /
Send Message
malcolm
polycount sponsor
Apr 2011
I select two edges and run polySelect -edgeRingPattern; and I get an error?
// Error: Flag '-edgeRingPattern' expects 2 argument(s).
What am I doing wrong, there is nothing in the command reference telling me how to use this command?
0
·
Share on Facebook
Share on Twitter
Replies
Offline /
Send Message
Seaseme
polycounter lvl 8
Apr 2011
What is this command supposed to do? Is it just a normal select edge ring?
0
·
Share on Facebook
Share on Twitter
Offline /
Send Message
THNKR
Apr 2011
You need to provide the ids of two edges, like this:
polySelect -edgeRingPattern 58 79;
0
·
Share on Facebook
Share on Twitter
Offline /
Send Message
malcolm
polycount sponsor
Apr 2011
I thought this script would select every n'th edge in a pattern.
0
·
Share on Facebook
Share on Twitter
Offline /
Send Message
malcolm
polycount sponsor
Apr 2011
Our technical artist sorted it out for me.
string $edges[] = `ls -sl -fl -l`;
for( $e=0; $e<`size($edges)`; $e += 2 )
{
string $buffer[];
tokenize $edges[$e] "[]" $buffer;
string $start = $buffer[1];
tokenize $edges[$e + 1] "[]" $buffer;
string $end = $buffer[1];
polySelect -rpt ((int)$start) ((int)$end);
}
0
·
Share on Facebook
Share on Twitter
Sign In
or
Register
to comment.
Replies
polySelect -edgeRingPattern 58 79;
string $edges[] = `ls -sl -fl -l`;
for( $e=0; $e<`size($edges)`; $e += 2 )
{
string $buffer[];
tokenize $edges[$e] "[]" $buffer;
string $start = $buffer[1];
tokenize $edges[$e + 1] "[]" $buffer;
string $end = $buffer[1];
polySelect -rpt ((int)$start) ((int)$end);
}