[Feature request] Trigger custom event with custom payload

Following this topic I thought it would really be great to have an option to trigger custom events with custom payload. This would greatly benefit if you have developed multiple plugins and want to have some interaction between them. Then you could make a plugin listen for that custom event and have access to a payload.

Simple example

  • Plugin 1 does some actions on a layer when some event is triggered
  • Plugin 2 only triggers the generic History state change, but…
  • If Plugin 2 could trigger a custom event with lets say Layer ID as a payload, then Plugin 1 could catch it and do some actions on that layer
3 Likes

Bumping this up… Again ran into situation, where it would be very useful

I think this is already possible isn’t it? Via custom actions recording. Or maybe via plugin IPC calls.

Hmm… I’ll have to take another look then :eyes:

So I’ve read a bit and I don’t see how actions recording would fit here even remotely. I don’t want anything to do with actions while firing and listening for events :thinking:

And IPC only has two methods, which in my case maybe could be beneficial, but IMHO too much trouble now. I already solved what I needed a bit differently, but I still think custom events would come up handy in the future

I might try to check if that works… this is a very good question and I could have later use for this.

But my point is Actions = BatchPlay. They both use Action Descriptors. They both use same arguments.

This issue is action listener does not listen all events for 3rd party. E.g. your own panel events are excluded I think someone else plugins as well… unless there is some exception being made… and I wonder if action recording can deal with it.

I still don’t follow :confused: According to docs, you still need to manually hit the mouse button to start recording an action in order for plugin to record its step into that action. How is this related to events? :thinking: