The factory scripts in maya 6.5 only select and invert in visible object! But yeah theres a slight problem with this layers dont show up as visibility keys of the objects wjich they govern.
but this is easily remedied by running after the fact.
global proc jooNotInHiddenLayers(){
string $layers[],$objs[];
$layers=ls -et displayLayer
;
$layers= stringArrayRemove({"defaultLayer"}, $layers);
for ($layer in $layers)
if (!getAttr "layer1.visibility"
)
$objs=stringArrayCatenate(editDisplayLayerMembers -q -fn $layer
,$objs);
select -d ls -transforms $objs
;
}
Save this as jooNotInHiddenLayers.mel in any of your user script folders.
tough you may want to add this as defaultted behaivour of the menuitems
you can do this by copying ..mayascriptsstartupdefaultRunTimeCommands.mel to your own script folder
And then modify it to read search for the select all. snipet
// Select all.
//
runTimeCommand -default true
-annotation ("Select All")
-category ("Edit")
-command ("select -allDagObjects;jooNotInHiddenLayers")
SelectAll;
// Invert Selection.
//
runTimeCommand -default true
-annotation ("Invert Selection")
-category ("Edit")
-command ("invertSelection;jooNotInHiddenLayers")
InvertSelection;
now this should remedy the fact. didnt test this too toroughly tough but should do it.
Restart maya.