Copy link to clipboard
Copied
Hello!
I would like to have an expression on a Menu Dropdown controller, such that if
var text = thisComp.layer("Verse").text.sourceText.value;
has 1 lines of text, then the dropdown menu will be value 1, if it has 2 lines the menu will be value 2, and if the text has 3 lines it will be value 3. (The default vaule of the dropdown menu should be value 2.)
Is there a way to do this, where you reference how many lines a text layer has with an expression?
Thanks!
Something like this maybe:
thisComp.layer("Verse").text.sourceText.split("\r").length
Copy link to clipboard
Copied
Something like this maybe:
thisComp.layer("Verse").text.sourceText.split("\r").length
Copy link to clipboard
Copied
Works perfectly! Thanks so much.