maya mel getAttr出来的数值怎么用于setAttr

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;

https://www.cnblogs.com/3lina/p/10233020.html