Animated keyboard based on source text layer
- July 29, 2021
- 3 replies
- 390 views
Hi,
I am trying to expand on a type on script I recently learned using the input of the text to type on based on a slider controller. I have a comp with a phone keyboard added, all of the keypads and letters have their own comp. I would like to drive the opacity on each key as a letter is typed. I have some coding experience in other languages and though a switch or dictionary would be the best way but I am not sure if these are implemented in the latest JavaScript version in AE. How would I take the source.text.value and use that to trigger opacity animation on the appropriate keys. I am solely focused on Alpha characters, spaces and special characters will use one of 3 other comps in the layer. I have a picture of my script that drives the text layer animation. I have a drop down menu with 26 items(named A-Z) on a null. I want the toUpper() method applied to the result of the source text.substring value and then that value used to find the appropriate comp and apply a ease in out on the opacity of the comp.
