-
1. Re: How to get callbacks for the changes made to effects added to AEGP plugins?
shachar carmi May 13, 2010 2:01 AM (in response to dheeraj_c)what effect are you applying?
according to your code you're applying the first effect installed on AE arbitrarily.
GetNumInstalledEffects and GetNextInstalledEffect both refer to the effects loaded by AE ion startup, and not the effects on the a layer.
if you already knew that, then forget what i just wrote....
the technique is dependant of a few things:
1. what changes are you trying to monitor?
changes made by the user, or changes that happen over time, like keyframed values.
2. is the effect you're monitoring an effect you've written, or is it a random effect?
in an effect you've written you can apply param supervision.
this way whenever the user changes a value you get a call from AE telling you what param has changed,
and then the effect could report back to your AEGP.
this will only work if the user makes the change. not so for keyframes and expressions.
if the effect you're monitoring was not written by you or you wish to monitor non user triggered changes,
you could use PF_GetCurrentState and PF_HasParamChanged to look for changes in that effect.
if you need continuous monitoring, and not just during specific times, you could setup an idle_hook in your AEGP.
that would result in AE giving you a call every time it's not rendering something. that happens more that 20 times per second whenver AE is idle.
you could use that time to look for changes in these effects.
maybe there are more methods of working around this problem,
but there's no way of making AE report you automatically of changes made in a random effect.
-
2. Re: How to get callbacks for the changes made to effects added to AEGP plugins?
dheeraj_c May 13, 2010 3:35 AM (in response to shachar carmi)Thanks Shachar for your helpful answer.
Currently I'm trying with the random effect. But I need to check for custom effect also.
If I'm monitoring a custom effect then how do I report back to AEGP?
-
3. Re: How to get callbacks for the changes made to effects added to AEGP plugins?
shachar carmi May 13, 2010 4:47 AM (in response to dheeraj_c)via custom made suites.
look at the "checkout" and "sweety" samples.
they show how an effect can contact an AEGP.
-
4. Re: How to get callbacks for the changes made to effects added to AEGP plugins?
dheeraj_c May 13, 2010 6:00 AM (in response to shachar carmi)Thanks Shachar. I will check it out.


