Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Can I get the color of a solid via expression?

  • Can I get the color of a solid via expression?

    Posted by Andrei Popa on January 25, 2023 at 12:54 pm

    Hi guys. I am trying to get the color of a solid via expressions and I am a bit lost.

    I have tried

    thisComp.layer(index-1).source.mainSource.color
    thisComp.layer(index-1).source.color
    thisComp.layer(index-1).color

    In the documentation I only found properties of general Footage or some JSON properties, but nothing about solids.

    Andrei Popa replied 3 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Filip Vandueren

    January 25, 2023 at 2:57 pm

    AFAIK it’s not accessable, but in a pinch you could ;sampleImage() preEffects

  • Andrei Popa

    January 26, 2023 at 10:41 am

    Thanks. I was trying not to use sampleImage() because AFAIK its quite slow, similar to sourceRectAtTime().

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