Body: <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>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-09-25T09:40:38.387Z
Comments.Text: `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;
  }`
Comments.UserDisplayName: Mr.Trung Ngọc
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-09-25T13:59:46.027Z
Comments.Text: 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.
Comments.UserDisplayName: stib
Tags: <after-effects>
Title: How to copy IN, OUT, DURATION of each layer from Comp1 to each layer of Comp2
UserDisplayName: Mr.Trung Ngọc
ThreadText: # 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
  
  