• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

A color sampling tool?

Explorer ,
Jun 03, 2020 Jun 03, 2020

Copy link to clipboard

Copied

Hello community!

 

I'm looking for a tool / plugin /script / procedure / expression /whatever that would sample the color of a user defined pixel in each frame of the comp so I could use that to match the color of something else to that color. Is there such a thing? One might think this is a common thing to do but I've never seen it anywhere...

 

Thanks for any advice!

TOPICS
Expressions , How to , Resources , Scripting , User interface or workspaces

Views

778

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Mentor , Jun 04, 2020 Jun 04, 2020

In an expression, you can use

sampleImage(point, radius = [.5, .5], postEffect=true, t=time)

to do so.

 

With the point control you can easily let the user select a certain pixel. Return value is a 4-item array [r,g,b,a], which you can use to drive the other thing.

 

Read more about this in expression reference:

https://helpx.adobe.com/after-effects/using/expression-language-reference.html

 

*Martin

Votes

Translate

Translate
LEGEND ,
Jun 04, 2020 Jun 04, 2020

Copy link to clipboard

Copied

Given how AE works there cannot be some generic color sampling tool as any corrections you plan on doing would have to be applied via effects, anyway. That being the case, chances are you would need an expression with the sampleImage() function linked to the parameters of color correction effects or some such thing. There's no generic answer here. You have to be very specific and explain what you are trying to match and how you plan on applying the color.

 

Mylenium

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 04, 2020 Jun 04, 2020

Copy link to clipboard

Copied

LATEST

Very simple really, take the color value of a certain pixel so I can link it to whatever accepts a color value. And do this in every frame.

 

Extracting that color info automatically in every frame is the core of my question. The rest is easy.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Jun 04, 2020 Jun 04, 2020

Copy link to clipboard

Copied

In an expression, you can use

sampleImage(point, radius = [.5, .5], postEffect=true, t=time)

to do so.

 

With the point control you can easily let the user select a certain pixel. Return value is a 4-item array [r,g,b,a], which you can use to drive the other thing.

 

Read more about this in expression reference:

https://helpx.adobe.com/after-effects/using/expression-language-reference.html

 

*Martin

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines