Replace composition source Comp
This script lets you change the source of a composition used in your render comp during rendering. You can specify another composition from your After Effects project to use as the source for the target composition.
To use this script, provide the name of the composition you want to set as the new source. Make sure that the specified composition exists in your After Effects project.
Here is a simple example of how this script can be useful. Your render composition (RENDER_COMP) contains a composition OFFER_1 that displays a special offer. You might have multiple offer compositions in your project, such as OFFER_2, OFFER_3, etc. By using Replace Composition Source, you can change which offer composition is used in RENDER_COMP and render different versions of the video with different offers without needing to create separate templates for each offer.

To handle dynamic content effectively, it’s important to ensure that layers in the target composition are parameterized. This can be done by enabling the Show all project layers option in the template editor. This allows you to access and modify the layers of all compositions in your project, including those that are not directly used in the render composition. By parameterizing the layers in the target composition, you can ensure that the content of those layers can be dynamically changed during rendering.
We recommend using the Replace composition source script as the last script in your template script sequence.
