ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Rename text layer name based on the text content.

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Andrei Popa
Re: Rename text layer name based on the text content.
on Feb 12, 2020 at 1:17:04 pm

Try this:

crtComp = app.project.activeItem;

for (var i=1;i<=crtComp.numLayers;i++){
currentLayer = crtComp.layer(i);
if(currentLayer typeof TextLayer){
currentLayer.name = currentLayer.text.sourceText.value;
}
}


Andrei
My Envato portfolio.


Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]