Skip to main content
Inspiring
February 13, 2017
Answered

Is it possible to differentiate between an adjustment layer and a precomp?

  • February 13, 2017
  • 1 reply
  • 458 views

Hi. I saw from a previous post it's possible to determine a layer type using the following code:

AEGP_LayerH layerH;
ERR(suites.PFInterfaceSuite1()->AEGP_GetEffectLayer(in_data->effect_ref, &layerH)); //get the layer refference

AEGP_ObjectType          layerType = NULL;
ERR(suites.LayerSuite5()->AEGP_GetLayerObjectType(layerH, &layerType));

Unfortunately for me adjustment layers and precomps are both considered video layers. I need to determine exactly which type it is, is this possible? Thanks.

This topic has been closed for replies.
Correct answer shachar carmi

AEGP_GetLayerFlags with AEGP_LayerFlag_ADJUSTMENT_LAYER will let you know

if the adjustment switch is on or off for a layer.

1 reply

shachar carmiCommunity ExpertCorrect answer
Community Expert
February 13, 2017

AEGP_GetLayerFlags with AEGP_LayerFlag_ADJUSTMENT_LAYER will let you know

if the adjustment switch is on or off for a layer.

Inspiring
February 15, 2017

Thanks Shachar, that's perfect.