string $sel[]=ls -sl;string $RTX=getAttr ($sel[0]+".rotateX");string $RTY=getAttr ($sel[0]+".rotateY");string $RTZ=getAttr ($sel[0]+".rotateZ");
ls -sl
getAttr ($sel[0]+".rotateX")
getAttr ($sel[0]+".rotateY")
getAttr ($sel[0]+".rotateZ")
setAttr "top.rotateZ" $RTZ;
https://www.cnblogs.com/3lina/p/10233020.html