Alternatively, if anyone is using cs5.5 or lower like I do at home.
I got your method of doing it to work Eli
If you put this expression into the shape position.
content(“Rectangle 1”).content(“Rectangle Path 1”).size/2;
and this, into the Transform:Rectangle AnchorPoint (not to be mistaken for the normal anchor point in transform) (I accidentally did the expression to work based on the right…Just swap it round if you want left)
if (effect(“AnchorRight”)(“Checkbox”) == 1)
[content(“Rectangle 1”).content(“Rectangle Path 1”).size[0],0]
else
[0,0]
Then in the Transform Position add this.
if (effect(“AnchorRight”)(“Checkbox”) == 1)
transform.anchorPoint
else
[transform.anchorPoint[0]+content(“Rectangle 1”).content(“Rectangle Path 1”).size[0],transform.anchorPoint[1]]
Essentially the top two bits are determining are cheating to find the left and right top corners, but it’s moving the shape. So the third expression is just counteracting the top to so it remains in the same spot.