Skip to main content
Étienne Loignon
Participant
Dec 13, 2023 8:37 PM UTC
Answered

text.sourceText with Dropdown menu text

I'm trying to make an animatic template and I would like the text that is in the dropdown menu to be placed over the text that is on the screen. Additionally, I would like that if I change the text in the dropdown menu that the text on the screen is updated. I search everywhere and try differents thing but I always end up at the same place. 

Can someone help please ? 

the best script that I could find for my situation is from ukramedia from this video 

https://www.youtube.com/watch?v=nPTNtwSx9SE&ab_channel=ukramedia

 

DropMenu = comp("PostProd_Template").layer("Change Texte").effect("TextSelector")("Menu").value;
TextNames = ["Texte 1","Texte 2","Texte 3", "Texte 4","Texte 5","Texte 6"]
TextNames[DropMenu -1 ];

 

Thank you 

This topic is closed to new replies. Start a new post to keep the conversation going.
Airweb_AECorrect answer
Legend
Dec 13, 2023 9:38 PM UTC

Hello, you can use this tric:

- create your text layer

- open Essential Graphics panel and add your sourceText property

- add a slider control /* optional => add it to essential graphic too

- add this expression to the sourceText property:

text.sourceText.split('\r')[effect("DROPDOWN INDEX")("Slider")]

 

Now you can edit your text values in essential graphics panel and change the dropdown index using the slider. 

 

2 replies

Airweb_AECorrect answer
Legend
Dec 13, 2023 9:38 PM UTC

Hello, you can use this tric:

- create your text layer

- open Essential Graphics panel and add your sourceText property

- add a slider control /* optional => add it to essential graphic too

- add this expression to the sourceText property:

text.sourceText.split('\r')[effect("DROPDOWN INDEX")("Slider")]

 

Now you can edit your text values in essential graphics panel and change the dropdown index using the slider. 

 

Translate
Étienne Loignon
Participant
Dec 14, 2023 2:54 PM UTC

It really work Thank you so much 😊 

Translate