Change Text Layers by Renaming a Composition in Ae

Ukramedia’s Sergei Prokhnevskiy Shows a Tick That Will Have You Replacing Text Layer Names With Composition Names in After Effects

Have a lot of labels, lower thirds, or any other type versioning to do in After Effects? Then you should check out this tip by Ukramedia’s Sergei Prokhnevskiy. Working with expressions in After Effects, Sergei shows how you can automatically change a type layer to reflect what the composition name is. This can be a great way to make many changes to a lower third, simply by duplicating a composition and titling it.

Sergei walks through how to set that all up and shows how the expressions work. The expressions used are in two parts:


compName =;     //Be sure to use if you’re planning on duplicating the comp

compName.substring(0, compName.indexOf(“,”))



compName =;     //Be sure to use if you’re planning on duplicating the comp


Keep these around for the next time you need to easily create any type of text versioning, especially for an ocean of compositions.

Some of the links on lesterbanks are "affiliate links", a link with a special tracking code. This means if you click on an affiliate link and purchase the item, we will receive an affiliate commission. The price of the item is the same whether it is an affiliate link or not. Regardless, we only recommend products or services we believe will add value to our readers. By using the affiliate links, you are helping support our Website, and we genuinely appreciate your support.