Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
0

Drawbot example doesn't work on AE 2014

Participant ,
Aug 01, 2016 Aug 01, 2016

Hi All,

I've pretty strange issue while running the CCU example.

Whenever I use the 2014 AE SDK everything is fine.

Whenever I use the 2015 AE SDK the example works fine for  AE 2015/2015.3 but crashes on AE 2014.

Digging slightly into the code I saw that the issue happens when drawbot suite is acquired.

In the function "AEFX_AcquireDrawbotSuites" in the AEFX_SuiteHelper.c, the third acquire fails with the following error:  PF_Err_BAD_CALLBACK_PARAM

Any ideas why that can happen?

PF_Err AEFX_AcquireDrawbotSuites(PF_InData*in_data,/* >> */
PF_OutData*out_data,/* >> */
DRAWBOT_Suites*suitesP)/* << */

{

PF_Errerr = PF_Err_NONE;
if (suitesP == NULL) {
out_data->out_flags |= PF_OutFlag_DISPLAY_ERROR_MESSAGE;

PF_SPRINTF(out_data->return_msg, "NULL suite pointer passed to AEFX_AcquireDrawbotSuites");

err = PF_Err_UNRECOGNIZED_PARAM_TYPE;
}

if (!err) {
err = AEFX_AcquireSuite(in_data, out_data, kDRAWBOT_DrawSuite, kDRAWBOT_DrawSuite_VersionCurrent, NULL, (void **)&suitesP->drawbot_suiteP);
}
if (!err) {
err = AEFX_AcquireSuite(in_data, out_data, kDRAWBOT_SupplierSuite, kDRAWBOT_SupplierSuite_VersionCurrent, NULL, (void **)&suitesP->supplier_suiteP);
}
if (!err) {
err = AEFX_AcquireSuite(in_data, out_data, kDRAWBOT_SurfaceSuite, kDRAWBOT_SurfaceSuite_VersionCurrent, NULL, (void **)&suitesP->surface_suiteP);
}
if (!err) {
err = AEFX_AcquireSuite(in_data, out_data, kDRAWBOT_PathSuite, kDRAWBOT_PathSuite_VersionCurrent, NULL, (void **)&suitesP->path_suiteP);
}
return err;

}

TOPICS
SDK
576
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Aug 01, 2016 Aug 01, 2016

This is because the macro kDRAWBOT_SurfaceSuite_VersionCurrent points to a version of the surface suite that isn't supported in AE2014. I had this problem and found the best way to get round it is to edit the file AEFX_SuiteHelper.c directly, replacing it with kDRAWBOT_SurfaceSuite_Version1, so:

err = AEFX_AcquireSuite(in_data, out_data, kDRAWBOT_SurfaceSuite, kDRAWBOT_SurfaceSuite_Version1, NULL, (void **)&suitesP->surface_suiteP);

You could instead edit DrawbotSuite.h, changing the macro kDRAWBO

...
Translate
Engaged ,
Aug 01, 2016 Aug 01, 2016

This is because the macro kDRAWBOT_SurfaceSuite_VersionCurrent points to a version of the surface suite that isn't supported in AE2014. I had this problem and found the best way to get round it is to edit the file AEFX_SuiteHelper.c directly, replacing it with kDRAWBOT_SurfaceSuite_Version1, so:

err = AEFX_AcquireSuite(in_data, out_data, kDRAWBOT_SurfaceSuite, kDRAWBOT_SurfaceSuite_Version1, NULL, (void **)&suitesP->surface_suiteP);

You could instead edit DrawbotSuite.h, changing the macro kDRAWBOT_SurfaceSuite_VersionCurrent to kDRAWBOT_SurfaceSuite_Version1, and leaving AEFX_SuiteHelper.c as it was.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 01, 2016 Aug 01, 2016
LATEST

Thanks a lot, Christian,

That worked for me))

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines