Transformation matrix – AnchorPoint doesn’t work with horizontal/verticalTranslation
dear forum,
when try use anchorpoint with horizontal/verticaltranslation property, it’s ignored. seems anchorpoint.top_left_anchor used whenever use different option: e.g. anchorpoint.bottom_right_anchor.
in example below tried use available anchor points, tried play other coordinate spaces, result same: if in ui set x 50pt top-left anchor selected.
main(); function main() { var doc = app.activedocument; var obj = doc.rectangles[0]; var transmatrix = app.transformationmatrices.add({horizontaltranslation: 50}); obj.transform(coordinatespaces.pasteboard_coordinates, anchorpoint.top_left_anchor, transmatrix); }
however, other properties:
clockwiseshearangle
counterclockwiserotationangle
horizontalscalefactor
verticalscalefactor
it works expected
am doing wrong? missing something? or, bug?
regards,
kasyan
p.s. forgot mention: on indesign cc 2014 (2nd release) windows.
hi kasyan,
i don't know expect horizontal translation.
the whole object moved 50 pt in x-direction. expected.
regardless of anchor point choosing.
uwe
More discussions in InDesign Scripting
adobe
Comments
Post a Comment