Race Condition in After Effects UI Panel
I'm trying to make an After Effects script for the first time. The idea is to basically randomize the fonts of the text layer by character or by word.
I'm using Deepseek and ChatGPT to try to make it work cause i have few to none coding abillities and it almost works. The thing is that After Effects can't change the font os characters individually so the script needs to take the text from the text layer and create a new text layer for each character and then randomize the font of the new text layers. So I did that part and it works, but for it to work the way I want to it needs to change the font multiple times, then I would need a unique layer for each character and font type. Also did that part and it works, but when running everything together with a simple cut to simulate the font changing it stops working. ChatGPT said it should work with long sentences but it barely works with 2 character words. Can anyone help me?
https://github.com/gariigolt/RandomFonts/blob/main/RandomFonts_v2.jsx
