Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to get Text fill?

  • How to get Text fill?

    Posted by Ilya Sire on November 8, 2021 at 1:10 pm

    Hi forum,

    I have color control and i apply this expression to get font color, but it doesn’t worked. What did i missed, do i need to convert to hex?

    Thanks

    var fc = thisComp.layer("master").text.sourceText; 
    fc.style.fillColor;
    Ilya Sire replied 4 years, 6 months ago 1 Member · 1 Reply
  • 1 Reply
  • Ilya Sire

    November 8, 2021 at 1:51 pm

    got it.. c = returns 3 dimensions only.

    var fc=thisComp.layer("master").text.sourceText;
    var c = fc.style.fillColor;
    [c[0],c[1],c[2],1]

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy