Skip to main content
Étienne Loignon
Participant
December 13, 2023
Answered

text.sourceText with Dropdown menu text

  • December 13, 2023
  • 1 reply
  • 501 views

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 has been closed for replies.
Correct answer Airweb_AE

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. 

 

1 reply

Airweb_AECorrect answer
Legend
December 13, 2023

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. 

 

Étienne Loignon
Participant
December 14, 2023

It really work Thank you so much 😊