<p>I want to copy IN, OUT, DURATION of each layer from Comp1 to each layer of Comp2. Are there anyway to do that? or script?</p>

<p><a href="https://i.sstatic.net/aasmV.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/aasmV.png" alt="]"></a></p>

CC BY-SA 4.0
2019-09-25T09:40:38.387Z
`var com1 = app.project.item(61); //1. Music
var com2 = app.project.item(62); //2. Track Name
for(var i = 1; i <= com1.layers.length; i++) {
    com2.layers[i].inPoint = com1.layers[i].inPoint;
    com2.layers[i].outPoint = com1.layers[i].outPoint;
}`
Mr.Trung Ngọc
CC BY-SA 4.0
2019-09-25T13:59:46.027Z
Good answer, but please put that as an answer rather than a comment. You might want to briefly explain how to run a script too.
stib
<after-effects>
How to copy IN, OUT, DURATION of each layer from Comp1 to each layer of Comp2
Mr.Trung Ngọc
# How to copy IN, OUT, DURATION of each layer from Comp1 to each layer of Comp2

(Asked by: username_0 on 2019-09-25)

I want to copy IN, OUT, DURATION of each layer from Comp1 to each layer of Comp2. Are there anyway to do that? or script?

[![]](https://i.sstatic.net/aasmV.png)](https://i.sstatic.net/aasmV.png)

**Tags:** after-effects

> **Comments:**
> **username_0**: `var com1 = app.project.item(61); //1. Music var com2 = app.project.item(62); //2. Track Name for(var i = 1; i <= com1.layers.length; i++) {     com2.layers[i].inPoint = com1.layers[i].inPoint;     com2.layers[i].outPoint = com1.layers[i].outPoint; }`  
> **username_1**: Good answer, but please put that as an answer rather than a comment. You might want to briefly explain how to run a script too.  

---

## 0 answers

