Copy link to clipboard
Copied
I have a silly question.
I know how to save sequence_data in the plugin. When I take a look into After Effect's project file, my sequence_data is saved in there.
But I really don't know how to read it... Could you help me with that? Didn't find answer after searching through this forum.
Dave
Copy link to clipboard
Copied
you read it pretty much the same way you save it.
you get the sequence_data handle from the in_data, and you cast it to your data structure.
something along the lines of:
//in the header
typedef struct {
int yo;
float mama;
} myData;
//in a function
myData *seqData;
seqData = *(myData **)in_data->sequence_data;
//now you can access your data, to either read or write.
seqData->yo = 1;
Copy link to clipboard
Copied
(don't hold me to the word on the "**" situation on the casting. experiment.)
Copy link to clipboard
Copied
Thank you! Works like a charm
Names of variables pretty funny ![]()
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more