Shelflayout A Layout? Or Not A Layout?

We all know there are some scary things going on in Maya sometimes, especially in Mel:

someone seen this before?
layout -exists Animation;
// Result: 1 //

layout -q -childArray Animation;
returns just nothing! But:

shelfLayout -q -childArray Animation;
// Result: shelfButton1 shelfButton2 shelfButton3 shelfButton4 she...

hope the layout command has no more suprises for me today...

QUOTE(ewerybody @ 12/10/05, 02:16 PM)
We all know there are some scary things going on in Maya sometimes, especially in Mel:

someone seen this before?
layout -exists Animation;
// Result: 1 //

layout -q -childArray Animation;
returns just nothing! But:

shelfLayout -q -childArray Animation;
// Result: shelfButton1 shelfButton2 shelfButton3 shelfButton4 she...

hope the layout command has no more suprises for me today...
[snapback]222066[/snapback]

if you're working on linux, some of the generic mel query/edit commands don't work properly (for example, using "control" to query often doesn't return the right value). perhaps windows has some of these same quirks. in any case, using more specific mel commands to query (such as shelfLayout) may help to spot problems in your code at some later stage (if and when you encounter errors),

cheers,
sunit

yea its windows.
but as you see: some quirks as well
And yes I just use control and layout to differ between these two. But I'll use the exact command for qerying and editing..

is it possible theres a naming clash... because of teh clash the shelflayout will unioquely be able to identify the thing while layout does not (tough ist totaly capable of saying such exsist because theres a clash, but ist of no consequence since what you querry exst clash or no clash)

Anwyay i idnt test thi soo thoiroughly justa a idea on what might be going on. Because this cloud appear to be glitch while its not. Tough sometimes there is a glitch.

PS but yes it does not indeed appear to work. in neither 7.0, 6.5 nor 6.0