Copy link to clipboard
Copied
Hi there,
So I have this simple expression applied to a clean text layer with nothing else on it.
It compiles with no errors but it's just not changing the leading of the text.
style.setLeading(-100)
I tried JavaScript and Legacy Extendscript as well and nothing works. Cleaned cache, rebooted..nothing.
Any ideas? Much appreciate it...
Cheers
Your expression will work if you turn off auto leading. You could turn it off in the expression so it would not matter if you remembered to change it in the Character Panel.
Here is the way to make setting the leading work every time:
style.setAutoLeading(false).setLeading(-100);
Copy link to clipboard
Copied
Your expression will work if you turn off auto leading. You could turn it off in the expression so it would not matter if you remembered to change it in the Character Panel.
Here is the way to make setting the leading work every time:
style.setAutoLeading(false).setLeading(-100);
Copy link to clipboard
Copied
Thank you so much!!! Finally working... 🙂