Copy link to clipboard
Copied
Hi Friends,
please help me to get the layer type in adobe after effects adobe extend the script,
Regards
Senthuran
Copy link to clipboard
Copied
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/