Skip to main content
Inspiring
Dec 26, 2017 2:28 PM UTC
Answered

Interacting with host application

Hello,

I've got a newbie question !

Is it possible to listen events from Illustrator app in extensions ?

I would like to be notified when a user changes the name of a layer or when he moves an item to another group or when he changes the anchor points of a path.

I would like to be able to intercept all these types of events and more.

Is it possible ? Does anyone have an example?

If possible, how can I get a list of all these events?

I saw that there was PlugPlugAddEventListener, is it possible to use it in this way?

Thanks for your help.

Loïc

[moved from Illustrator Scripting by moderator]

This topic is closed to new replies. Start a new post to keep the conversation going.
Ten A
Ten ACorrect answer
Community Expert
Dec 26, 2017 10:21 PM UTC

CEP doesn’t support events in AI.

However, We can listen a event via plugin that made by Illustrator SDK.

You can download tools and documents from Adobe I/O Console .

5 replies

Inspiring
Jan 17, 2018 7:56 AM UTC

Thanks.

I inspect MarkedObject and Freegrid samples in SDK. I saw Events.

Now I must learn and understand C++ ! A big challenge !

Is it possible to build a very small plugin that listen all events in host app and dispatch them to CEP ?

If anyone have a good tutorial for Illustrator SDK programming, it's perfect.

Have a nice day !

Translate
Loic.Aigon
Legend
Feb 5, 2018 8:41 PM UTC

I second that. We need to be able to monitor AI UI events.

Translate
Ten A
Community Expert
Ten ACommunity ExpertCorrect answer
Community Expert
Dec 26, 2017 10:21 PM UTC

CEP doesn’t support events in AI.

However, We can listen a event via plugin that made by Illustrator SDK.

You can download tools and documents from Adobe I/O Console .

Translate
Inspiring
Jan 16, 2018 5:08 PM UTC

Hello,

Thanks for your response ! That's sad !!!

Someone have some code examples for listen events in host app and diffuse to CEP Extensions ???

I don't develop in C++ but if it's not to hard, I'll try !

Thanks in advance.

Translate
Ten A
Community Expert
Community Expert
Jan 16, 2018 10:11 PM UTC

You can check samples in SDK.

The Marked object sample plugin has some events and you can learn how it works with CEP.

Translate