I'm trying to select every object on the layer "DoubleSided" (in a MEL script) and I do actually have it working but the command I'm using is:
layerBarPickObjects DoubleSided MayaWindow|mayaMainWindowForm|formLayout4|frameLayout6|formLayout22|formLayout23|frameLayout7|formLayout24|scrollLayout1|buttonGrid;
Which seems a little over-the-top. I understand all that gubbins is some sort of "path" to the relevant layer bar layout or something but does it really need to be that unweildy?
I tried:
layerBarPickObjects DoubleSided buttonGrid;
and it doesn't bitch but it doesn't actually select the objects either...
Surely a command as simple as something like:
layerBarPickObjects DoubleSided ;
would be expressing exactly the same thing?
Is there another command for this or another way to do it?
:nathaN