Skip navigation
Net & Storage Solutions
Currently Being Moderated

Get Object for position

Apr 12, 2012 8:06 AM

Hi,

 

My question is rather simple,

 

is there any functionality that returns an object by x and y pos?

 

E.g. I click on 120x and 250y, and on that coördinate there is a textframe,

is it possible to fetch that object just by giving the x and y ?

 

(Via scripting, or java, whatever is possible)

 

Kind regards

 
Replies
  • Currently Being Moderated
    Apr 12, 2012 8:15 AM   in reply to Net & Storage Solutions

    This feature is not present in the Indesign, may be some script can do it for you...

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 12, 2012 8:22 AM   in reply to Manish-Sharma

    Scripting can't help you, because a script cannot determine if the user clicked anywhere, lest on what position.

     

    (A crude way to do this would be to pop up a dialog, asking for the coordinates. If the coordinates are known, it's easy to get a list of objects that are under that position. But note: objects, plural. As always, this has to be thought about ahead. The OP only mentions 'an object'; what if there are more than one? What about a group -- return the group itself, or "the" object (or objects) inside the group? What about items on a master page?

     

    As always, it would help if the OP could clarify what would be done with the object(s) after 'finding' them at a certain location. Surely this would serve a deeper purpose, other than "just to see what is there"?)

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points