{
polySelectConstraint -m 3 -t 0x0001 -w 1;
string $openBorderVtx[] = `ls -sl -fl`;
polySelectConstraint -m 0 -w 0;
dR_modeVert;
string $storeBorderVtx[];
for {$verts in $openBorderVtx)
{
select -r $verts;
float $colorQuery[] = `polyColorPerVertex -q -g`;
if ($colorQuery[0] == 1)
{
$storeBorderVtx[`size($storeBorderVtx)`] = (`ls -sl`);
}
}
select -r $storeBorderVtx;
}
I have no idea why is wrong with this code. Im just trying to query vertices that are green. the syntax error is driving me nuts.
Solved! Go to Solution.
{
polySelectConstraint -m 3 -t 0x0001 -w 1;
string $openBorderVtx[] = `ls -sl -fl`;
polySelectConstraint -m 0 -w 0;
dR_modeVert;
string $storeBorderVtx[];
for {$verts in $openBorderVtx)
{
select -r $verts;
float $colorQuery[] = `polyColorPerVertex -q -g`;
if ($colorQuery[0] == 1)
{
$storeBorderVtx[`size($storeBorderVtx)`] = (`ls -sl`);
}
}
select -r $storeBorderVtx;
}
I have no idea why is wrong with this code. Im just trying to query vertices that are green. the syntax error is driving me nuts.
Solved! Go to Solution.
Solved by mspeer. Go to Solution.
Hi!
In line 7 there is a wrong bracket used "{", but it should be "(".
Corrected:
for ($verts in $openBorderVtx)
Hi!
In line 7 there is a wrong bracket used "{", but it should be "(".
Corrected:
for ($verts in $openBorderVtx)
D'oooh Im such an idiot. I have been staring at it for the longest time and couldn't see it. Thanks
D'oooh Im such an idiot. I have been staring at it for the longest time and couldn't see it. Thanks
Hi!
Something like this happens to everyone from time to time.
Hi!
Something like this happens to everyone from time to time.
Can't find what you're looking for? Ask the community or share your knowledge.