• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

text.sourceText with Dropdown menu text

New Here ,
Dec 13, 2023 Dec 13, 2023

Copy link to clipboard

Copied

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 

TOPICS
Expressions , Scripting

Views

94

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Dec 13, 2023 Dec 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. 

 

screenshot.png

Votes

Translate

Translate
Engaged ,
Dec 13, 2023 Dec 13, 2023

Copy link to clipboard

Copied

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. 

 

screenshot.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 14, 2023 Dec 14, 2023

Copy link to clipboard

Copied

LATEST

It really work Thank you so much 😄 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines