Answers.Body: <p>It depends how you mean: </p>
  
  <p>Option 1:
  If you put the image in Layer 1 inside a Comp, then any change to the image inside the Comp will change in both Layer 1 and Layer 2 (assuming you also put the Comp on Layer 2).</p>
  
  <p>Option 2:
  You could put a load of different images inside a comp, a different one on each frame.
  Then in your master comp, place this comp, but assign Time Remap to the comp, to choose to hold on a specific frame.  Then when you want to change the held frame, just keyframe to the different time in your first comp.</p>
  
  <p>Option 3: 
  If you really mean to change the image programmatically, you could use something like <a href="https://aescripts.com/templater/" rel="nofollow noreferrer">Templater Rig</a>, where you can set a load of different file paths to images, and then assign them to different comps programmatically.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-10T12:17:30.780Z
Answers.Text: Thanks @tomh, I'm more into option1 but would like to have a different effect for each image in each comp. Templater is perfect choice but pricy for this feature only.
Answers.UserDisplayName: mediaroot
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-10T16:11:00.153Z
Answers.Text: I don't think you need any additional plugins for what you're trying to do.
  Just place the different effects on layer 1, layer 2 whilst using the same comp in each layer?
Answers.UserDisplayName: tomh
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-11T09:04:50.763Z
Answers.Text: This is great, but for some reasons when I duplicate the comp in the timeline, the copy doesn't follow the original in changes. only if the comp is in project directory and not imported to the time line then the method works. Once the duplicate imported it doesn't follow the changes.
Answers.UserDisplayName: mediaroot
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-11T17:08:07.827Z
Answers.Text: how do you mean it doesn't follow the changes?  Duplicating a comp in the timeline is different from duplicating it in the project window. When you duplicate it in the timeline, both layers will reference a single source comp. If you duplicate the comp in the Project panel, it will make a unique copy of the comp.
Answers.UserDisplayName: tomh
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-11T21:15:43.740Z
Answers.Text: That’s exactly what I wanted. Sorry for confusion.
Answers.UserDisplayName: mediaroot
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-12T00:26:54.993Z
Answers.Text: No worries at all- I highly recommend this set of tutorials to learn more. It’s old but all of it is still relevant: http://www.videocopilot.net/basic/
Answers.UserDisplayName: tomh
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-09T17:00:33.073Z
Answers.LastActivityDate: 2019-01-09T17:00:33.073Z
Answers.UserDisplayName: tomh
Body: <p>My comp setup is as follows:
  - layer 1: image
  - layer 2: duplicated from layer one</p>
  
  <p>I'm looking for an expression or any other method (Could be a plugin recommendation) so when I change the image of layer 1, it automatically updates layer 2!</p>
  
Tags: <after-effects><after-effects-expressions><after-effects-scripting>
Title: After effects | How do I copy an image source from layer to another programatically?
UserDisplayName: mediaroot
ThreadText: # After effects | How do I copy an image source from layer to another programatically?
  
  (Asked by: username_0 on 2019-01-06)
  
  My comp setup is as follows:
  - layer 1: image
  - layer 2: duplicated from layer one
  
  I'm looking for an expression or any other method (Could be a plugin recommendation) so when I change the image of layer 1, it automatically updates layer 2!
  
  **Tags:** after-effects, after-effects-expressions, after-effects-scripting
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-01-09. Score: 1 | Accepted answer
  
  It depends how you mean:
  
  Option 1:
  If you put the image in Layer 1 inside a Comp, then any change to the image inside the Comp will change in both Layer 1 and Layer 2 (assuming you also put the Comp on Layer 2).
  
  Option 2:
  You could put a load of different images inside a comp, a different one on each frame.
  Then in your master comp, place this comp, but assign Time Remap to the comp, to choose to hold on a specific frame. Then when you want to change the held frame, just keyframe to the different time in your first comp.
  
  Option 3:
  If you really mean to change the image programmatically, you could use something like [Templater Rig](https://aescripts.com/templater/), where you can set a load of different file paths to images, and then assign them to different comps programmatically.
  
  > **Comments:**
  > **username_0**: Thanks @username_1, I'm more into option1 but would like to have a different effect for each image in each comp. Templater is perfect choice but pricy for this feature only.  
  > **username_1**: I don't think you need any additional plugins for what you're trying to do. Just place the different effects on layer 1, layer 2 whilst using the same comp in each layer?  
  > **username_0**: This is great, but for some reasons when I duplicate the comp in the timeline, the copy doesn't follow the original in changes. only if the comp is in project directory and not imported to the time line then the method works. Once the duplicate imported it doesn't follow the changes.  
  > **username_1**: how do you mean it doesn't follow the changes?  Duplicating a comp in the timeline is different from duplicating it in the project window. When you duplicate it in the timeline, both layers will reference a single source comp. If you duplicate the comp in the Project panel, it will make a unique copy of the comp.  
  > **username_0**: That’s exactly what I wanted. Sorry for confusion.  
  > **username_1**: No worries at all- I highly recommend this set of tutorials to learn more. It’s old but all of it is still relevant: http://www.videocopilot.net/basic/  
  
  ---
  
  