Skip to main content
Participant
July 16, 2021
Question

adobe Extend script help

  • July 16, 2021
  • 1 reply
  • 216 views

Hi Friends,

 

please help me to get the layer type in adobe after effects adobe extend the script,

 

Regards

Senthuran

This topic has been closed for replies.

1 reply

Justin Taylor-Hyper Brew
Community Expert
Community Expert
September 28, 2021

You compare it with instanceof

 

if(layer instanceof AVLayer){
    alert('avlayer');
}else if(layer instanceof CameraLayer){
    alert('cameralayer');
}else if(layer instanceof LightLayer){
    alert('lightlayer');
}

 

More info here: https://ae-scripting.docsforadobe.dev/layers/layer/