-
Linking Text Sources based on Comp and Layer Numbers
I have a set of Comps for a series of title cards, “1_Name Template,” “2_Name Template,” “3_Name Template,” etc…
I am attempting to parse the number from each comp name, and pull Source Text from “Name Title Comp” from layers named,
“1_Name” and “1_Title”
“2_Name” and “2_Title”
I can’t quite figure out how to port an expressed number value into a layer name.
Pardon my lack of eloquence, I’m fairly new to this and having a hard time describing my efforts.
Thanks!
compNum = parseInt(thisComp.name);comp("Name Title Comp").layer(compNum"_Name").text.sourceText
Daniel Gillies – Danger Media, LLC.
Editorial / Motion Graphics / And Stuff
:: da*********@**.com
:: https://linkd.in/1mJsdIo
:: https://vimeo.com/dgillies/2014reel