// selectPartial.mel // version 1.2 // author: volker heisterberg (volk@renderwahnsinn.de) // This script is usefull if you got a lot of objects and want to select every e.g. second object only // Usage: select all objects, run selectPartial ( ). e.g. selectPartial 3 2; // Version History: // 1.1 (14.05.05) Fixed component selection when many are selected // 1.2 (29.05.05) Prevented the user from entering 0 for the step size global proc selectPartial(int $step, int $offset) { string $selection[] = `ls -sl -fl`; int $selectionCount = size($selection); if ($step<1) error "Step has to be at least 1 !!!"; int $i=$offset; select -cl; while($i<$selectionCount) { select -add $selection[$i]; print ("added " + $selection[$i] + "\n"); $i = $i + $step; } }