const mainTextLayer = thisComp.layer("text1");
const mainTextStyle = mainTextLayer.text.sourceText.getStyleAt(0);
mainTextStyle.setText(mainTextLayer.text.sourceText.value);
Duplicates the text content and style from a main text layer. Automatically updates whenever the source changes.
Contributed by:
Automatically mirror both text and styling from a main layer - perfect for subtitles, translated text, or synced design systems.