Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Can you ask the user to select a point?

New Here ,
May 20, 2009 May 20, 2009

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

TOPICS
Actions and scripting
626
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Guru ,
May 20, 2009 May 20, 2009
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines