Strange behaviour when trying to rotate around (0,0) point ??
(0,0) is set in TOP LEFT corner of the page...
It's not shown on the Video - but it's like rotation point is in the middle of the Left edge of the first page ?? But it's still dancing ??
What is even worse - objects on the 2nd spread - behave like (0,0) point is still on the 1st Page / Spread ??
This is part to set TransformReferencePoint:
myInDi.ActiveDocument.LayoutWindows.Item(1).TransformReferencePoint = Array(0, 0)
And this is to rotate:
myInDi.ActiveDocument.Selection.Item(a).RotationAngle = myInDi.ActiveDocument.Selection.Item(a).RotationAngle + myLAngle
It's in a loop so when only one item is selected - a=1.
Doesn't matter what RulerOrigin I set, doesn't matter if I manually move (0,0) point in the InDesign - when I'm trying to rotate object via scripting - it's like (0,0) point is in the middle of the left edge of the first page???
If I try to rotate by Object's reference point - it's perfectly fine.
What am I doing wrong? Or it's fine in JavaScript?

