Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

Copy layer to another composition

$
0
0

Hi all,

 

I am trying to import a specific layer from one AE project to another.

I am able to import AE project and find a composition and add it to where I want with:

 

myComp.layers.add(app.project.item(c).item(e));

 

But how can i go one level down and target specific layer? I tried:

 

myComp.layers.add(app.project.item(c).item(e).layer(1));

 

But i get an error: "[object AVLayer] is not of the correct type".

 

Thanks for your help,

Martin


Viewing all articles
Browse latest Browse all 2143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>