Topic Options
#39989 - 07/04/12 05:31 AM retrieve Properties from other objects on page
Danny Seager Offline
OL Newbie

Registered: 07/07/10
Posts: 30
Is there a function to inspect and retrieve properties of other objects on the page.

The reason I want to do this is that when you use a lot of press talk the snapping points do not really work...

Example :

Object 1 - Press talking showing a dynamic pdf
object 2 - A text box

So in object 2 I want to measure the top Property of object 1, then I can measure the height of the pdf I am dynamically showing in object 1 and add the 2 together to get the bottom of object 1, which will then allow to position object 2 relative to the bottom of object 1.

Top
#39994 - 07/04/12 02:30 PM Re: retrieve Properties from other objects on page [Re: Danny Seager]
Olivier J Offline
OL Expert

Registered: 05/13/08
Posts: 622
Loc: OL Montreal
Hi Danny,

Have you tried using the physical.y attribute of the presstalk object, from the "presstalk after" section? This should give you right away the position instead of calculating it.

But to answer your question, you can only access an object's properties from within it.

Hope this helps.
Regards,
Olivier

Top
#40099 - 07/16/12 04:44 PM Re: retrieve Properties from other objects on page [Re: Olivier J]
Benoit Potvin Offline
OL Expert

Registered: 01/02/08
Posts: 362
Loc: Montréal
Danny,

One thing you can do is to use a Global variable. You initialize this variable in the 'PlanetPress Talk Before' section of your object, then reuse the same global variable in the second object.

Hope this helps
_________________________
Knowledge is capital
http://twitter.com/benoitpotvin

Top