neonoodle
05-05-2006, 03:24 AM
Hi everyone,
I'm trying to make a tool that will take the results of a CutPolygon command, seperate those cut faces, and then fill the holes. How can I make it so that the function waits for the script to finish the cut polygon command before acting on the results? So far I have this:
global proc string[] dbCutFaces()
{
string $selected[] = `ls -sl`;
string $result = `CutPolygon`;
string $seperated[] = `polySeparate -ch 0 $selected[0]`;
polyCloseBorder -ch 1 $seperated[0];
polyCloseBorder -ch 1 $seperated[1];
return $seperated;
}
I'm trying to make a tool that will take the results of a CutPolygon command, seperate those cut faces, and then fill the holes. How can I make it so that the function waits for the script to finish the cut polygon command before acting on the results? So far I have this:
global proc string[] dbCutFaces()
{
string $selected[] = `ls -sl`;
string $result = `CutPolygon`;
string $seperated[] = `polySeparate -ch 0 $selected[0]`;
polyCloseBorder -ch 1 $seperated[0];
polyCloseBorder -ch 1 $seperated[1];
return $seperated;
}
