Expression for underlining words in a text row?
Posted: January 8th, 2009, 9:14 am
Hey again guys.
Would need some smart way to automatic create an underline under each word in a row of text. I must be able to set the height of the underline and the distance from the above text line. Preferably also some "bleed"-control so i can make each section of the underline #-pixels wider then the word.
My brain is currently not working and I can not come up with a smart way to do it. Preferably as straightforward as possible and without precomps and it must be automatic so it's based on the actual text I type in.
We're doing a Karaoke based tv-show and there's shitload of text to type and animate. I have written loads of expressions and streamlined the workflow pretty good. But we still have to mask every word for getting the underline in a nice way. Would like to automate this to. Attaching a screen so you know what it looks like now.
I was thinking if there maybe was a pixel analyze command or something then I could query each vertical pixel row from bottom to top (or in a user defined area) on the text layer. As soon as I hit a pixel I somehow store that and paint it out on another layer on a user specified Y-position. Then I do that for each row and I would get a underline for each character. Then I still need to stitch it together so it underlines each word and not each character. Sounds a bit complicated. Maybe there's some better way? =) Would be a huge timesaver for me if I could automate this.
Would need some smart way to automatic create an underline under each word in a row of text. I must be able to set the height of the underline and the distance from the above text line. Preferably also some "bleed"-control so i can make each section of the underline #-pixels wider then the word.
My brain is currently not working and I can not come up with a smart way to do it. Preferably as straightforward as possible and without precomps and it must be automatic so it's based on the actual text I type in.
We're doing a Karaoke based tv-show and there's shitload of text to type and animate. I have written loads of expressions and streamlined the workflow pretty good. But we still have to mask every word for getting the underline in a nice way. Would like to automate this to. Attaching a screen so you know what it looks like now.
I was thinking if there maybe was a pixel analyze command or something then I could query each vertical pixel row from bottom to top (or in a user defined area) on the text layer. As soon as I hit a pixel I somehow store that and paint it out on another layer on a user specified Y-position. Then I do that for each row and I would get a underline for each character. Then I still need to stitch it together so it underlines each word and not each character. Sounds a bit complicated. Maybe there's some better way? =) Would be a huge timesaver for me if I could automate this.