Seq data/Arb data/Undo issues
Hey All!
Can solve that situation, maybe I miss something!?
Working on effect, me scheme:
param1 -\ / render
param2 ---} [sequence data] -
param3 -/ \ update custom UI
So if any param is changed, seq data recalculating and both, render and custom UI - updating.
If I undo last param changes, param will undo, render will take a previous image from cache, but sequnce data will not update, its undoeble.
For example:
1step. param = 1, seq data = 255, render/UI - white
2step. param = 0, seq data = 0, render/UI - black
3step. UNDO -> param = 1, seq data = 0, render - white(from cache), cust UI - Undefined Behaviour.
I cant find the point, where I can recalculate my seq data if Undo and draw updated custom UI. Do we have any Event, or flag or function to manage that? What I tried:
1. Trying to find undo event. ctr-z KEYDOWN works fine, but as I see in Debug, key-down was the first event after ctr-z command, and the value of slider is still not reverted. So I cant use that values,
2. I can recalculate seq data in Draw event, but its wrong way. I cant send it to render and I need to recalculate it many/many/many times at every Draw event.
3. cant use PF_Cmd_UPDATE_PARAMS_UI
4. Im wondering, should I use arb data for my custom UI? And what the role of seq data then?
What is ncice way to work with undo in AE if I have custom data?
here is an order of called events after ctr-z:

Many seq calss, I have all of them (accordingly with that doc:
https://reduxfx.com/ae_seqdata), but its not working for me.
