-
Expression to calculate Color Blending Mode on 2 color values?
Hi all,
I try to make flickering light changes effects stack like this: https://vimeo.com/338472778
I made it with help of precompositing, but now I try to recreate it as an single adjustment to more convenient use.So my question is: is there expression to calculate Color Blending Mode on 2 color values?
To be more specific:
I have sampled RGBvalue1 and RGBvalue2 and I want to make some expression on it to receive RGBresult as a result of LinearLight Blending Mode beetween the two, same as it would be in the following setup:
– Solid1 layer with color RGBvalue1 (lower)
– Solid2 layer with color RGBvalue2 (over previous one) with blending mode LinearLight (or any other standard blending mode to choose).I didn’t find any built-in command in AE’s expressions to blend (mix) color values. Or I missed someting?
Or maybe some math on RGBvalue1 and RGBvalue2?
I found a webpage where LinearLight is defined as:(Blend > 0.5) * (Target + 2*(Blend-0.5)) + (Blend <= 0.5) * (Target + 2*Blend - 1)
But I struggle how convert it to AE’s JavaScript expression.
Some contents or functionalities here are not available due to your cookie preferences!This happens because the functionality/content marked as “Vimeo framework” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.