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_re f, ¤tLayer));
ERR(suites.LayerSuite1()->AEGP_GetLayerDuration(currentLayer, AEGP_LTimeMode_LayerTime, &layerDuration));
Is there a way to get the effect duration in Premiere?
Thanks.