- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Working on a script where it will select triangle, It is working but that confirmdialog is not showing how many triangles are selected. Anyone knows how to fix it?
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 ). ");
}
Solved! Go to Solution.