Hi shachar, nice to meet you!
In another way, I created a sequence data like this:
typedef struct {
bool didRender;
<some histogram data>;
} Histogram;
typedef struct {
Histogram* histograms;
} my_sequence_data, *my_sequence_dataP, **my_sequence_dataH;
my_sequence_data.histograms is an array with in_data->total_time / in_data->time_step items initialized during the sequence setup.
During the render call, I cached the calculated histogram at this current_time to the sequence->histograms[in_data->current_time / in_data->time_step], set the didRender = true.
In this way, I have another problem with the AE cached image. I disabled a random previous effect on the effect panel, then the AE re-rendered my effect, the histogram changed (good). I enabled the effect again, and nothing change (bad )
I try to force the AE re-rendering after the custom UI changed ( I tried with the event_extraP->evt_out_flags = PF_EO_HANDLED_EVENT; and params[HISTOGRAM_UI]->uu.change_flags |= PF_ChangeFlag_CHANGED_VALUE; on the click, drag events...) but it seem not works!
Am I on the right way ?
Thank you so much!