How can I control the coordinate system?
My puzzle is somewhat simple:
Suppose you have a rectangle and you ask for its geometric bounds. Then you compute a new size, with the same values for the upper left corner, and use those values to resize. What happens is that the rectangle moves quite a distance and I expect its upper left corner to remain in place.
Here's a skeleton script fragment - starting with the variable myRect pointing to a rectangle which is on a page in a spread:
myBounds = myRect.geometricBounds
myY1 = myBounds[0]
myX1 = myBounds[1]
myY2 = myBounds[2]
myX2 = myBounds[3]
newY2 = myY2 + 20
newX2 = myX2 +30
myRect.reframe(CoordinateSpaces.SPREAD_COORDINATES,[[myY1,myX1],[newY2,newX2]])
I also tried this with the PAGE_COORDINATES option, but then the frame just disappeared from view, so it made an enormous move!
I'd really appreciate any help in preventing the corner's motion. Thanks in advance.