shape.position vs shape.refPoint

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
2 posts • Page 1 of 1
chris@blue-catalyst.co.uk
Posts:32
Joined: Tue Jun 11, 2013 9:27 am

shape.position vs shape.refPoint

Post by chris@blue-catalyst.co.uk »

Hi,

I wanted to pick out the position of an object but have found that a getValue on position or refPoint returns only the refPoint even when when different.

I tried this on a rectangle (v3.15p6) where I moved the reference point away from the rectangle, as you can see from the image both the getValue for the position and reference point returned the reference point in both cases.

Is there a way to get the position of an object when the reference point is different?

Image

Thanks,

Chris
Attachments
RefvsPosition.PNG

michel.eijgermans
Posts:46
Joined: Mon Aug 08, 2011 11:50 am

Re: shape.position vs shape.refPoint

Post by michel.eijgermans »

Maybe the 'points' property can help you. They are available on a rectangle. It gives you the coordinates of the upperleft and lowerright points when dealing with a rectangle.
The coordinates returned are related to the location on the screen of the object from which they are requested.

2 posts • Page 1 of 1