Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

script UI onClick listener not reading selection correctly

$
0
0

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?


Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>