PF_CreateNewAppProgressDialog - how to use it?
Hi!
I am trying to figure out how to use PF_CreateNewAppProgressDialog().
I get an After Effects error: bad PF_ProgPtr (25::2002) when calling it
CODE:
| PFAppSuite6 *pfApp = NULL; | |||
| A_UTF16Char | title[256] , | ||
| button[256]; | |||
| PF_AppProgressDialogP prog_dlgP = NULL; | |||
| basic_dataP->pica_basicP->AcquireSuite(kPFEffectUISuite, kPFEffectUISuiteVersion1, (const void**)&pfApp); | |||
| if(pfApp) | |||
| { | |||
| pfApp->PF_CreateNewAppProgressDialog(title, button, true, &prog_dlgP); | |||
| // After Effects error: bad PF_ProgPtr (25::2002) here | |||
| if(prog_dlgP) | |||
| { | |||
| pfApp->PF_AppProgressDialogUpdate(prog_dlgP, 0, 0); | |||
| } | |||
| basic_dataP->pica_basicP->ReleaseSuite(kPFEffectUISuite, kPFEffectUISuiteVersion1); | |||
| } |
Thanks
JS
