Skip navigation
hilukasz
Currently Being Moderated

script UI onClick listener not reading selection correctly

Jul 1, 2012 9:05 PM

for some reason when I call the event listener on a button it doesn't want to store the selection  (might be losing selection onBlur? not sure)

 

there are several lines that really confuse me, because of scope, they should have access to the selection since it is defined outside the function. Here is a gist of the code since I cant stand forums syntax highlighting :X

 

https://gist.github.com/3030813

 

line 43-50 are where I am the most confused. any ideas?

 
Replies
  • Currently Being Moderated
    Jul 1, 2012 9:43 PM   in reply to hilukasz

    Because you use a "palette" type window, which can not directly communicate with Illustrator.

    You should use "dialog", or have a look at this thread: http://forums.adobe.com/message/4402253#4402253

     
    |
    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