Skip to main content
Inspiring
July 4, 2024
Question

Premiere GPU effect on AfterEffects : PrSDKOpaqueEffectDataSuite not available in AE

  • July 4, 2024
  • 1 reply
  • 382 views

Hello,

 

I have written a PremierePro plugin that expose GPU rendering via PrGPUFilterModule template which add a xGPUFilterEntry entry point.

 

In AfterEffects, it is detected as a GPU filter however, I am using:

  • PF_UtilitySuite4 to GetFilterInstanceID
  • PrSDKOpaqueEffectDataSuite to store data used by plugin instances.

But these suites are not available in AfterEffects.

 

Is there a way to get a mechanism to pass "opaque" data between AE "EffectMain" and PPro "xGPUFilterEntry" ? in_data->sequence_data is not available in xGPUFilterEntry and AcquireOpaqueEffectData was the way I found in PremierePro to exhange data BUT the corresponding suite is not available in AE!

 

Thanks in advance

 

David

This topic has been closed for replies.

1 reply

r2d3_Author
Inspiring
July 30, 2024

I have done some investigations and the `xGPUFilterEntry` (CreateInstance) callback seems to be able to acquire the kPrSDKOpaqueEffectDataSuite using:

mSuites->utilFuncs->getSPBasicSuite()->AcquireSuite(kPrSDKOpaqueEffectDataSuite, kPrSDKOpaqueEffectDataSuiteVersion, (const void**)&mOpaqueEffectSuite);

 

However trying to get the suite in AE's EffectMain, I got an exception when using: 

AEFX_SuiteScoper<PrSDKOpaqueEffectDataSuite> opaqueEffectDataSuite(in_data, kPrSDKOpaqueEffectDataSuite, kPrSDKOpaqueEffectDataSuiteVersion, out_data);

So, it seems to me that the suite code is avaibale in AfterEffects but I have no idea to get a pointer to it in the AE's EffectMain callbacks ?

 

What should/could I do ?

 

Thanks in advance.