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?

  • Andrei Popa

    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.

  • 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().

Viewing 1 - 3 of 3 posts

Log in to reply.

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