ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Source text as thisComp.name but also have it lowercase

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


Dan Ebberts
Re: Source text as thisComp.name but also have it lowercase
on Jan 21, 2020 at 5:05:09 am

As a simple example, if you wanted to split long names at the first space character, you could do something like this:

maxLength = 20;
compName = thisComp.name;
compName = thisComp.name.toLowerCase();
n = compName.substring(0, compName.indexOf('//'));
n.length > maxLength ? n.replace(" ", "\r") : n


Dan



Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]