struggling with passing sequence_data
Dear AE fellows,
I have some problem with passing sequence_data between functions serving different calls.
I start with supervisor example plugin. I added additional integer field into my sequence data structure:
int test_int;with default value 0:
SequenceSetup (PF_InData *in_data, PF_OutData *out_data, int init_num = 0)
And then I set it in my UpdateParameterUI function:
my_sequence_dataP seqP = reinterpret_cast<my_sequence_dataP>(DH(out_data->sequence_data));
seqP->test_int = 57;After AE effects leaves UpdateParameterUI it calls SequenceResetup.
However, when I check the contents of in_data-sequence_data entering SequenceResetup
PF_Handle flatSequenceDataH = in_data->sequence_data;
flatSequenceData* flatSequenceDataP = static_cast<flatSequenceData*>(DH(flatSequenceDataH));I see that flatSequenceDataP->test_int is not updated and is equal to its default value (i.e. 0).
How could that be? What do I miss here?
Yaroslav.
