triangle confirmDialog error

polycounter lvl 3
Offline / Send Message
Pinned
jayantbhatt007 polycounter lvl 3
changeSelectMode -object;
string $sel[] = `ls -sl`;
int $badFaces = 0;

if (size($sel) < 1)
{
confirmDialog -t " Check your object selection. " -b "OK" -bgc 0.8 0.5 0 -ma "center" -m " You have not selected any object.Select Atleast 1 mesh. ";

}

polySelectConstraint -m 3 -t 8 -sz 1; //Select triangle
$toFaces = `ConvertSelectionToFaces`;
$faces = `ls -sl -flatten`;
{
confirmDialog -t "Checking for bad faces finished." -b "OK" -bgc 0.3 0 0 -ma "center" -m (" Mesh needs fixing ! Triangles are selected ( there are " + $badFaces + " triangles ). ");
}
Sign In or Register to comment.