Copy link to clipboard
Copied
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
1 Correct answer
hi Arie! long time no see.
you're trying to plring an int, not a string.
so use %i instead of %s.
Copy link to clipboard
Copied
hi Arie! long time no see.
you're trying to plring an int, not a string.
so use %i instead of %s.
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
one day i'll come to NAB, and i'll reign supreme on the go cart race!!

