Skip to main content
dbDavideBoscolo
Legend
January 4, 2023
Answered

No fill / no stroke on text layer by scripting

  • January 4, 2023
  • 1 reply
  • 461 views

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


 

This topic has been closed for replies.
Correct answer Paul Tuersley

it's textDocument.applyFill = false;

https://ae-scripting.docsforadobe.dev/other/textdocument.html

1 reply

Paul TuersleyCorrect answer
Inspiring
January 4, 2023
dbDavideBoscolo
Legend
January 4, 2023

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