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

How to output currently rendering frame in composition to printf statement?

Enthusiast ,
Apr 23, 2015 Apr 23, 2015

Hi There,

How can I get the current frame of the composition being rendered output to a printf statement.  I'm doing something like the following.  DoRender() is being called from within PF_Cmd_SMART_RENDER:

static inline PF_Err

DoRender(

    PF_InData  *in_data,

    PF_EffectWorld  *inputP,

    RenderData  *rendP,

    PF_OutData      *out_data,

    PF_LayerDef  *outputP,

    PF_ParamDef  *params[])

{

printf("\nRendering time %s", in_data->current_time);

}

When I use the command line to execute AE and render a project with a plugin, I get the following output.  Why am I getting the null value for some frames, but then some are blank, and I kid you not, there is an ascii happy face that prints out--very weird.  Any ideas?:

Rendering time (null)

Rendering time (null)

Rendering time (null)

Rendering time (null)

Rendering time (null)

Rendering time (null)

Rendering time (null)

Rendering time (null)

Rendering time (null)

Rendering time

Rendering time

Rendering time

Rendering time

Rendering time

Rendering time

Rendering time

Rendering time

Rendering time

Rendering time

Rendering time

Rendering time

Rendering time

Rendering time

Rendering time

Rendering time

Rendering time ☺

Rendering time

Rendering time

Rendering time

Rendering time

TOPICS
SDK
571
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

correct answers 1 Correct answer

Community Expert , Apr 23, 2015 Apr 23, 2015

hi Arie! long time no see.

you're trying to plring an int, not a string.

so use %i instead of %s.

Translate
Community Expert ,
Apr 23, 2015 Apr 23, 2015

hi Arie! long time no see.

you're trying to plring an int, not a string.

so use %i instead of %s.

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
Enthusiast ,
Apr 29, 2015 Apr 29, 2015

Hey Shachar!

It's good to see you in the forums, too   You have to make it out to NAB sometime, though!  You help the community so much, and it would be great to meet you.  I know alot of folks around the Adobe area would be happy to see you, too.


Your suggestion did the trick.  Thank you for replying.


It's curious, though, that AE doesn't necessarily render frames in order when you hit the "Render" button. I suppose it has an algorithm that determines the frames that should be rendered depending on what's already cached.  I thought I would see a increasing sequence of numbers, but alas I was wrong.


Thanks again!

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 ,
Apr 30, 2015 Apr 30, 2015
LATEST

one day i'll come to NAB, and i'll reign supreme on the go cart race!!

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