PDA

View Full Version : empty uv set


haflen
10-10-2007, 02:25 AM
hello peoples.

just wandering if anyone out there knows of a mel script or some way of detecting empty uv sets, without having to select individual objects?

Hamburger
10-11-2007, 12:33 PM
Posted by gmask at Highend3d.com. Haven't tested it out yet.

{
for($n in `ls -type mesh -l`){

$pe= `polyEvaluate -uvcoord $n`;

if($pe[0] == 0)
{
print ($n+"\n");
catch(`polyAutoProjection -lm 0 -pb 0 -ibd 1 -cm 0 -l 2 -sc 1 -o 1 -p 6 -ps 0.2 -ws 1 $n`);
catch(`polyNormalizeUV -normalizeType 1 -preserveAspectRatio on $n`);
}

}

}

CGTalk Moderation
10-11-2007, 12:33 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.