Skip to main content
Participant
May 15, 2013
Answered

Effect duration - AE filter in Premiere

  • May 15, 2013
  • 1 reply
  • 678 views

I am working on filter plugin for AE and Premiere where I need to know the effect duration. in_data->total_time corresponds to the total clip duration, not the effect duration. If the clip is trimmed at start/end total_time not match the effect duration.

AEGP_GetLayerDuration return the right value in AE, but not works in Premiere.

AEGP_LayerH currentLayer;

A_Time layerDuration;

ERR(suites.PFInterfaceSuite1()->AEGP_GetEffectLayer(in_data->effect_ref, &currentLayer));

ERR(suites.LayerSuite1()->AEGP_GetLayerDuration(currentLayer, AEGP_LTimeMode_LayerTime, &layerDuration));

Is there a way to get the effect duration in Premiere?

Thanks.

This topic has been closed for replies.
Correct answer Zac Lam

Hey there,

Since Premiere Pro doesn't support AEGP calls, it implements PF Utility Suite in PrSDKAESupport.h to provide access to useful info like this.  In particular, GetClipDuration() should be what you're looking for.

Regards,

Zac

1 reply

Zac LamCorrect answer
Inspiring
May 15, 2013

Hey there,

Since Premiere Pro doesn't support AEGP calls, it implements PF Utility Suite in PrSDKAESupport.h to provide access to useful info like this.  In particular, GetClipDuration() should be what you're looking for.

Regards,

Zac