string $sel[]=ls -sl;
string $RTX=getAttr ($sel[0]+".rotateX");
string $RTY=getAttr ($sel[0]+".rotateY");
string $RTZ=getAttr ($sel[0]+".rotateZ");
setAttr "top.rotateZ" $RTZ;
string $sel[]=ls -sl;
string $RTX=getAttr ($sel[0]+".rotateX");
string $RTY=getAttr ($sel[0]+".rotateY");
string $RTZ=getAttr ($sel[0]+".rotateZ");
setAttr "top.rotateZ" $RTZ;