Copy link to clipboard
Copied
When I press Reset on my effect control, a PF_Cmd_USER_CHANGED_PARAM is sent for each parameter.
However, when doing Undo, the parameter is changed in the UI, but I do not get any "notification".
I have an object instance that should be kept synchronized AE parameters and I do not know how to do.
For example, this object instance is used to determine other parameters visibility, i.e. if checkbox A is checked, slider B and C should be enabled, if A is unchecked, B and C should be disabled.
A popup could also be used to populate other float sliders.
Could I get some notification using Undo groups ? or should I manually resynchronize my object with AE parameters at each PF_Cmd_UPDATE_PARAMS_UI call ?
Copy link to clipboard
Copied
you can use idle_hook to do a periodic project scan. these calls are *very* frequent (20-60 time per second), so as far as the user is concerned, it's instantenious.
Copy link to clipboard
Copied
In fact, I would need to generate something similar to UserChangedParam because when checkbox is checked/unchecked, this change the visibility of some sliders which is updated in the object instance's UserChangedParam
Copy link to clipboard
Copied
well... changing param values during UPDATE_PARAMS_UI is techincally possible, though is consdered bad practice as that call may be triggered at some odd times and not when you expect it. for example, if the user makes some param value change, then moves to a diffrent comp view and presses undo while viewing the other comp, you might not get the update call immediately. it might occur on the first time that affected instance becomes visible.
Copy link to clipboard
Copied
In my case, I change the parameters of my "OFX instance", syncing it with the AE/PPro parameters. So, I generate a UserChangedParam only for the OFX instance, so this is working OK to handle the undo/redo.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now