Skip to main content
Inspiring
September 18, 2024
Question

PF_Cmd_USER_CHANGED_PARAM no called when pressing Undo

  • September 18, 2024
  • 1 reply
  • 470 views

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 ?

This topic has been closed for replies.

1 reply

Community Expert
September 18, 2024

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.

r2d3_Author
Inspiring
September 19, 2024

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

Community Expert
September 20, 2024

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.