ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: "Title Case" Text Expression?

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


Tim Vaughan
Re: "Title Case" Text Expression?
on Jul 28, 2016 at 7:29:06 pm

Wait a minute--I believe I may of stumbled upon it. :)

function toTitleCase(str)
{
return text.sourceText.replace(/\w\S*/g, function(txt){return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();});
}
toTitleCase()


Thanks Dan!

--
Tim Vaughan
Production Editor and Motion Graphics, PBS Charlotte
Charlotte, NC


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]