Quantcast
Channel: Adobe Community : Popular Discussions - After Effects SDK
Viewing all articles
Browse latest Browse all 73444

PF_AppProgressDialogUpdate problem in AE SDK 2017.1

$
0
0

Hi,

 

I'm writing an After Effects plugin using AE SDK 2017.1 (14.2) on Windows 10. My installed After Effects is up to date (2017.2 Release, 14.2.0.198). The progress bar in my progress dialog isn't displaying correctly. Before a render is started, the bar is correct but the text below is wrong. And during a render, both are wrong.

 

Before rendering starts: correct bar size and %, incorrect text below it. I put in a sleep to artificially delay before render starts. Normally this state is just a quick flash.

Importer dialog before.png

Once render starts, bar size, %, and text below always show zero, regardless of countL and totalL values.

Importer dialog during.png

 

My plugin creates the dialog, does multiple renders in a loop, and disposes of the dialog. Here's my code related to the dialog:

 

// Create dialog

SUITE_APP->PF_CreateNewAppProgressDialog(reinterpret_cast<const A_UTF16Char*>(L"Exporting to NewBlue Titler PRO"), nullptr, false, &m_dlgPtr);

 

// Add a composition to render queue and start render

SUITE_RENDERQUEUE->AEGP_AddCompToRenderQueue(compH, path.c_str());

SUITE_RENDERQUEUE->AEGP_SetRenderQueueState(AEGP_RenderQueueState_RENDERING);

// Update dialog after each render

SUITE_APP->PF_AppProgressDialogUpdate(m_dlgPtr, currentVal, currentTotal);

 

// Dispose of dialog

SUITE_APP->PF_DisposeAppProgressDialog(m_dlgPtr);

 

It's as if the dialog gets reset every time a render begins. And the text below the bar ("Saving project... 90% complete") doesn't get updated at all from PF_AppProgressDialogUpdate.

 

Also, the After Effects CC 2017.1 SDK Guide PDF documents App Suite 5. But the SDK actually has PFAppSuite6, and all 3 dialog-related functions are new in App Suite 6.

 

Any suggestions to get the dialog's progress bar displaying correctly during renders?


Viewing all articles
Browse latest Browse all 73444

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>