Skip to main content
Participant
January 8, 2016
Resuelto

PF_CreateNewAppProgressDialog - how to use it?

  • January 8, 2016
  • 5 respuestas
  • 856 visualizaciones

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

Este tema ha sido cerrado para respuestas.
Mejor respuesta de cengstroem

Hi!

You have acquired wrong suite, PF_CreateNewAppProgressDialog is not part of kPFEffectUISuite, you should use kPFAppSuite instead.

This should work:

basic_dataP->pica_basicP->AcquireSuite(kPFAppSuite, kPFAppSuiteVersion6, (const void**)&pfApp);

Cheers

Christer

5 respuestas

cengstroemRespuesta
Inspiring
January 11, 2016

Hi!

You have acquired wrong suite, PF_CreateNewAppProgressDialog is not part of kPFEffectUISuite, you should use kPFAppSuite instead.

This should work:

basic_dataP->pica_basicP->AcquireSuite(kPFAppSuite, kPFAppSuiteVersion6, (const void**)&pfApp);

Cheers

Christer

January 8, 2016

Have you tried it with properly initialized "title" and "button" variables yet?

Participant
January 8, 2016

Yes!

I did just something like this:

A_UTF16Char title[256] = {'A'}, button[256] = {'B'};

January 8, 2016

Mmmh, you should still properly zero-terminate those strings, that might be one possible issue.

Also, for testing, I would use more common characters, as for example the string of 'A's in your "title" translates to 䅁, the Kanji for the verb "to get the rice grains by oppressing the ears of the rice plant" ;-) :-)