How can I detect when my effect is being deleted from a layer?
Hi all.
I have an effect plugin and I'd like to run some code when the effect is deleted from a layer. Right now I'm handling PF_Event_CLOSE_CONTEXT, but I'm pretty sure that's the wrong place because that's also called at other times (like when the cusomter selects another layer or closes the project). Since the PF_EventUnion that's passed in for that event is empty, I don't see a way to detect why the event is being fired.
Any ideas how to detect when an effect is deleted? Thanks.