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

How to get sequence_data?

Guest
Aug 28, 2012 Aug 28, 2012

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

TOPICS
SDK
871
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 ,
Aug 28, 2012 Aug 28, 2012

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;

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 ,
Aug 28, 2012 Aug 28, 2012

(don't hold me to the word on the "**" situation on the casting. experiment.)

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
Guest
Aug 29, 2012 Aug 29, 2012
LATEST

Thank you! Works like a charm Names of variables pretty funny

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