Sorry, edited while you were replying. Well spotted :) Here's a version that just selects instead of smoothing:string $transforms[] = `ls -tr`;string $result[] = {};for ( $transform in $transforms ){ string $meshes[] = `listRelatives -ad -ni -type "mesh" $transform`; if ( `size $meshes` == 0 ) continue; int $found = 0;…
Nope, that sounds like a pretty good method. So I guess you can get all objects, then use the listHistory command to find out if there are any polySmooth nodes. If there aren't any found, just call the polySmooth command for that object. It should be pretty straightforward - here's some example code (not 100% guaranteed to…