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

No fill / no stroke on text layer by scripting

Engaged ,
Jan 03, 2023 Jan 03, 2023

Copy link to clipboard

Copied

Hi all,

 

I can't find a way to set a no fill color / no stroke color on a text layer. 

I can change the color, but the RGB color doesn't accept an alpha value. I tried with .setApplyFill(false) but it doesn't seem to work. Any ideas?

var mySourceText = layer.property("Source Text");
var textDocument = mySourceText.value;

// THIS CHANGE THE COLOR CORRECTLY
textDocument.fillColor = RGBcolor;    

mySourceText.setValue(textDocument);


 

TOPICS
Scripting

Views

220

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

Enthusiast , Jan 04, 2023 Jan 04, 2023

Votes

Translate

Translate
Enthusiast ,
Jan 04, 2023 Jan 04, 2023

Copy link to clipboard

Copied

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
Engaged ,
Jan 04, 2023 Jan 04, 2023

Copy link to clipboard

Copied

LATEST

Oh! Thank you, that was easy and I must be tired. It works!

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