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

No fill / no stroke on text layer by scripting

Engaged ,
Jan 03, 2023 Jan 03, 2023

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
346
Translate
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
Translate
Enthusiast ,
Jan 04, 2023 Jan 04, 2023
Translate
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
LATEST

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

Translate
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