Skip to main content
Inspiring
May 14, 2014
Question

Support of art selection changed event in Illustrator.

  • May 14, 2014
  • 2 replies
  • 5054 views

Hello All,

I have a flex extension for AI. I am performing some task there when user move any art item. In flex, there is a ART_SELECTION_CHANGED event listener.

Now I have to port it for HTML.. So I am looking for this event or similar to this.

Is there any event to listen the ART_SELECTION_CHANGED in Illustrator for HTML as there is in Flex?

Or Is there any document or something which tells about which events are supported in HTML?

Thanks for any help..

This topic has been closed for replies.

2 replies

Community Expert
December 5, 2014

You can register for all the CSXS events available to Flex in the HTML CEP extension. You need to load the AIHostAdapter.aip plugin in your Illustrator application and use the cshostadapter.js and aihostadapter.js in your project. I have verified it working on Illustrator CC2014. You can download the plugin, the two js and a sample HTML CEP extension from the following link.

https://github.com/timothybrandspencer/CEP-Resources/tree/master/host_adapters

Thanks,

Manan

-Manan
Inspiring
March 16, 2015

Hi All,

I am also looking for the exact thing. But the above link is not working for me. Anyone have any idea about it..

How we register the art selection change event for Ai in html panels?

Thanks for the help.

Ten A
Community Expert
Community Expert
March 17, 2015

First, we need to install "AIHostAdapter.aip" plug-in in "Adobe Illustrator CC 2014->Plug-ins->Extensions".

Below Javascript code is sample of catch ART_SELECTION_CHANGED notifier.

$(function() {

  AIEventAdapter.getInstance().addEventListener(

  AIEvent.ART_SELECTION_CHANGED,

  function(eve) {

  alert(eve.type +" invoked.");

  }

  );

  });

Working image:

Ten

Inspiring
May 19, 2014

Hi guys,

I am still looking into it. I found these links,

Events in illustrator

And

events from eb3

According to the first one,


“documentAfterActivate”, “documentAfterDeactivate” and “applicationActivate” are the three events supported by Illustrator now. - By Zhihong Chen on Dec 12, 2013 3:54 AM

And In second one,

Hi,

Try these events:

DocumentAfterActivate

DocumentAfterDeActivate

ApplicationActive

ApplicationBeforeQuit

DocumentEdited

AppOnline

AppOffline

Best regards,

Hallgrimur

I have tried these events, only these three events are working “documentAfterActivate”, “documentAfterDeactivate” and “applicationActivate” for me.

I just want to make it sure, still only these 3 events are working in AI?

Thanks for any help..

Participant
August 4, 2014

Ai currently doesn't send any ART_SELECTION_CHANGED event.