Logo
  • Tutoriales
  • Libros
  • Preguntas

Expresiones de color en after effects

https://community.adobe.com/t5/after-effects-discussions/expression-to-manipulate-pixels-in-image/m-p/11306763

Rick Gerard

Community Expert

Jul 22, 2020

Copiar vínculo al Portapapeles

MÁS RECIENTES

Position is an array of up to 3 values with no real maximum value

Composition or layer size is an array of 2 values with a maximum value of 30,000

Color is an array of 4 values with a practical range of zero to 1.

This expression would change the fill color of a shape from red to blue as it moved from the top of a composition to the bottom and add or subtract green as it moved from left to right.

c = position[1];
t = position[0];
rbRatio = c / thisComp.height;
g = t / thisComp.width;
r = 1 - rbRatio;
b = rbRatio;
[r, g, b, 1]
Logo

legal