How to change colours of RGB and Affect the colour of an object

Community Beginner ,
Feb 15, 2022 Feb 15, 2022

Copy link to clipboard

Copied

Hi community.

 

Is there a way seperate objects of  R G B can be individual entities and affect one particular object like a colour picker.

 

https://tuneform.com/tools/color/rgb-color-creator

 

I have 3 rectangles RED GREEN BLUE, each has the Hue effect, and goes from 0 to 100. 

Red goes from black to Red 100%, Same for the Green and same for the Red.

 

This is what I'd like to ahieve if possible in AE, (and then also add some effects to it)

 

StefanCargoski_0-1644968408931.png

StefanCargoski_2-1644968549034.png

 

 

 

 

 

 

 

 

 

 

 

TOPICS
How to

Views

42

Likes

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

Adobe Community Professional , Feb 15, 2022 Feb 15, 2022
Sure. You would apply a sampleImage() expression to fetch the color values and then create a formula to derive a mix color - whatever that is supposed to be. In your case you coulkd even directly grab the valuies from within the effect. After all, Ae has a built-in hslToRgb() method in its expression engine. Mylenium

Likes

Translate

Translate
Adobe Community Professional ,
Feb 15, 2022 Feb 15, 2022

Copy link to clipboard

Copied

Sure. You would apply a sampleImage() expression to fetch the color values and then create a formula to derive a mix color - whatever that is supposed to be. In your case you coulkd even directly grab the valuies from within the effect. After all, Ae has a built-in hslToRgb() method in its expression engine.

 

Mylenium

Likes

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
Community Beginner ,
Feb 16, 2022 Feb 16, 2022

Copy link to clipboard

Copied

Hi Mylenium.

 

This seems like a hard one to do, any tutorials online for such a task?  I was about to post this as well in case its easier, because I'm confused with the reply you wrote.

 

I'm trying to pick whip the purple layer to the HUE values of the Red and Green Layers, so it can inherit its HUE values, so I can slide each colour independently.

 

StefanCargoski_1-1645002159203.png

 

 

StefanCargoski_0-1645002109494.png

 

 

 

Likes

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
Adobe Community Professional ,
Feb 16, 2022 Feb 16, 2022

Copy link to clipboard

Copied

LATEST

It's not hard as far as the code goes, but color mixing itself could be tricky, given that just linearly blending colors often can yield unwanted intermediate colors like muddy greys. A simple averaging of two colors could be as trivial as 

 

normalize(add(colorA,colorB));

 

with the pertinent references to the color controls needing to be filled in. For three colors you simply use a second set of mix colors, then mix the normalized results again in a third step. in your case the already mentioned hslToRgb() or its revers rgbToHsl() may need to be inserted to get correct results on an effect such as Hue/ Saturation. the basic method I illustrated would directly work in e.g. a Fill effect/ shape layer fill.

 

Mylenium

Likes

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