Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PF_Cmd_USER_CHANGED_PARAM no called when pressing Undo

Explorer ,
Sep 18, 2024 Sep 18, 2024

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 ?

TOPICS
SDK
431
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 18, 2024 Sep 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 19, 2024 Sep 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 20, 2024 Sep 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 04, 2024 Nov 04, 2024
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines