Hi Filip
Sorry for answering a little bit late, my machine is dead last week and i had to find a way to recover my files… long story…
i wanna thank you again and again… a lot of time
the code works fine, but when i try to link the source text to another text it doesn’t work, can you tell me why ? ( i just changed the first line of code )
THANK YOU FILIP
txt=thisComp.layer(“TEXT”).text.sourceText;
fs= txt.style.fontSize * 1000/effect(“boxWidth”)(“Slider”);
ld = (txt.style.autoLeading ? fs*1.2 : txt.style.leading * 1000/effect(“boxWidth”)(“Slider”));
style.setFontSize(fs).setAutoLeading(false).setLeading(ld);