Skip to main content
Participant
Jan 8, 2016 1:30 PM UTC
Answered

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

This topic is closed to new replies. Start a new post to keep the conversation going.
cengstroemCorrect answer
Inspiring
Jan 11, 2016 1:09 PM UTC

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 replies

cengstroemCorrect answer
Inspiring
Jan 11, 2016 1:09 PM UTC

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

Translate
Jan 8, 2016 1:36 PM UTC

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

Translate
j2stewartAuthor
Participant
Jan 8, 2016 2:24 PM UTC

Yes!

I did just something like this:

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

Translate
Jan 8, 2016 2:30 PM UTC

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" ;-) :-)

Translate