Is there an eventListener available when an object gets selected/deselected?
Hi,
I just started with scripting and was able to build a panel that uses a .jsx to evaluate shapes and returns the results to the HTML. But for each result I would have to use a button in the HTML to fire the .jsx-function.
<a href="#" onClick="update()" id="refresh"><img src="../img/RefreshDark.svg"></a>
So update() fires a function in ExtendedScript via csInterface.evalScript(). So far so good, everything works as expected.
What I need now is firing this function in JSX whenever I select or deselect an object (path/group/compound). The eventListeners I found so far are not capable of tracking selections as far as I understand. Is there a way to imitate such a behavior as for example the info panel? Whenever I select an object it instantly updates position and size of said object. How can this be achieved for my own panel without having to click a button/link?
Thank you in advance, especially for all the old threads and tutorials you guys created on several personal sites.
