How to use PF_PROGRESS function
my effect computes values frames in layer warp stabilizer does.
it can take few seconds on minute depending on layer, need show progress user. have problems in showing progress.
in after effects can use progress bar, seams when use iterate suites work.
when use pf_progress directly in render call (show in following code), nothing happened.
static pf_err
render(
pf_indata *in_data,
pf_outdata *out_data,
pf_paramdef *params[],
pf_layerdef *output)
{
aegp_suitehandler suites(in_data->pica_basicp);
pf_err err = pf_err_none,
err2 = pf_err_none;
long time = in_data->current_time / in_data->time_step;
pf_progress(in_data,50,100);
mycode(in_data, out_data, params, time); //here functon edit me
pf_progress(in_data,80,100);
return err;
}
any ideas show progress?
thanks
hi,all,
i'm still curious how pf_progress works.
workflow
1.user input video
2.user apply effect video , in render call call function mycode above, in function check out frames , processing generate output frames, means processes entire length of layer in background,
3.only when process done, show user result.
what want when process video frames in function mycode(), there progress bar tell current progress. or there may dynamic percent number somewhere tell user render progresses.
i have try use pf_progress above ,but dose not work.
can tell me how make work? or idea add dynamic percent number somewhere tell user current render progresses?
many thanks!
More discussions in After Effects SDK
adobe
Comments
Post a Comment