Skip to main content
Participant
May 21, 2009
Question

Can you ask the user to select a point?

  • May 21, 2009
  • 1 reply
  • 627 views

Is there a way in a javasript to ask the user to select a point and then get that information back as an X and Y value?

Eric

This topic has been closed for replies.

1 reply

Inspiring
May 21, 2009

One way, if you have cs4, is have the user drop a color sampler. Then you could do something like this

app.activeDocument.colorSamplers[0].position;// get the position
app.activeDocument.colorSamplers[0].remove()// remove the sample