> みっちり検証の上、これでほんとのほんとです。
というのは冗談で、以下が最終版となります(超土下座)
function unitFunc(ary){
app.activeWindow.transformReferencePoint=["1pt", 0];
x= app.activeWindow.transformReferencePoint[0];
app.activeWindow.transformReferencePoint=ary;
return x;
}
if(app.activeDocument.selection.length){
aa=app.activeDocument.selection[0];
tt=app.transformationMatrices.add(1,1,0,1,0,0);
bb=aa.rotationAngle;
cc=app.activeWindow.transformReferencePoint;
if(cc.reflect.name=="Array"){
unitObj=unitFunc(cc);
dd=[[cc[0]/unitObj, cc[1]/unitObj], [0, 0]]
} else{
dd=cc;
}
aa.transform (CoordinateSpaces.PASTEBOARD_COORDINATES, dd, tt, undefined, undefined);
}
[12652] (z-) (2011/08/29 Mon 12:04)