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

source text leading with expressions <style.setLeading(value)> impossible?

Explorer ,
Apr 12, 2020 Apr 12, 2020

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

 

TOPICS
Error or problem , Expressions , How to , Scripting

Views

2.7K

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

Community Expert , Apr 12, 2020 Apr 12, 2020

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);

 

 

Votes

Translate

Translate
Community Expert ,
Apr 12, 2020 Apr 12, 2020

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);

 

 

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
Explorer ,
Apr 13, 2020 Apr 13, 2020

Copy link to clipboard

Copied

LATEST

Thank you so much!!! Finally working... 🙂

 

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