Im actually working on differents things to fit maya to my need. the first (i hope the easier would be a command to hide (or close) all the open panel. I find some command in maya but none that can return me a list of all the floating panel.
the second is a mirror function it s very basic but i nned it so as to pose my characters and the one i found usually dont work the way i want. but i don t understand how to do a procedure. Do you got a good tutorial on global proc?
here is a part of the mel for XY mirror
// Mirror Across XY
$objectToMirror=ls -sl
;
object1= $objectToMirror[0];
$object2= $objectToMirror[1];
//translate
$obj1Tx = getAttr ($object1 + \".tx\");
$obj1Ty = getAttr ($object1 + \".ty\");
$obj1Tz = - getAttr ($object1 + \".tz\");
setAttr ($object2+\".tx\") $obj1Tx;
setAttr ($object2+\".ty\") $obj1Ty;
setAttr ($object2+\".tz\") $obj1Tz;
//Rotate
$obj1Rx = - getAttr ($object1 + \".rx\");
$obj1Ry = - getAttr ($object1 + \".ry\");
$obj1Rz = getAttr ($object1 + \".rz\");
setAttr ($object2+\".rx\") $obj1Rx;
setAttr ($object2+\".ry\") $obj1Ry;
setAttr ($object2+\".rz\") $obj1Rz;
I know it s verry basic ...
I bound this command to a button in an ui, but what i want to do is to write a procedure so as the buton call the proc, to keep the code of the ui as clean as possible.
I allso want to add the ability to select a third object that will be use as center point.
So if i could add a comment like "select 2 or 3 object the third will be the reference point" and a message error if you select les than 2 and more than 3 everyting will be fine 
bert