Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Get the color of a specific point/position

  • Get the color of a specific point/position

    Posted by Gerold Brunner on August 2, 2016 at 10:14 am

    Hi guys,

    I’m looking for an expression to get the color of a specific point in a composition.
    I’ve got several layers with different blending modes, to get a specific color chart. (attached)

    I “just” want to get the color of each field of the chart and write it into an e.g. Fill fx.

    thx

    dribbble

    Gerold Brunner replied 9 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Miguel De mendoza

    August 2, 2016 at 10:43 am

    You can use sampleImage():

    point = [0,0];
    radius = [1, 1];
    color = thisComp.layer(1).sampleImage(point, radius);

  • Gerold Brunner

    August 2, 2016 at 10:54 am

    Thy, just found that one.
    I’m now trying to write an effect with 12 samplers and 12 “center”-targets.
    But I have no idea where to start 😀

    dribbble

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