FORUMS: list search recent posts

Expression to control Channel Range (in Hue/Saturation)?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jeang Jenq Loh
Expression to control Channel Range (in Hue/Saturation)?
on Jun 20, 2016 at 11:36:45 pm

I'm trying to make multiple layer's fill color brightness change gradually by using index expression with some sort of lightness control. I've been trying to add expression on the fill color, by converting them to HSL and change the hsl[2] according to index, now I'm trying to use the master lightness value in Hue/Saturation to do that instead, but as Channel range controls Master Hue, Saturation and Lightness all together, I have no idea how to add expression on it that only controls Master Lightness. I thought it would be an array as it contains 3 values on it, but it's not. Anyone know how this works?




Return to posts index

Dan Ebberts
Re: Expression to control Channel Range (in Hue/Saturation)?
on Jun 21, 2016 at 6:44:29 am

Unfortunately, that property has a property value type of CUSTOM_VALUE, so you won't be able to access it with an expression.


Dan



Return to posts index

Jeang Jenq Loh
Re: Expression to control Channel Range (in Hue/Saturation)?
on Jun 21, 2016 at 9:18:40 pm

Ah that explains it. I'll fall back to using the rgbToHsl then,
Thanks Dan!


Return to posts index


Joe Clay
Re: Expression to control Channel Range (in Hue/Saturation)?
on Jun 22, 2016 at 3:15:23 pm

You could also try this. Just set your output colors to vary in brightness only. I prefer this method over rgbToHsl if I can use it.

http://workbench.tv/tutorials/2016-06-17_ColorCycle/

Joe Clay
Workbench.tv


Return to posts index

Jeang Jenq Loh
Re: Expression to control Channel Range (in Hue/Saturation)?
on Jun 22, 2016 at 8:39:29 pm

Thanks for the suggestion! However I'm trying to control my final output color using a fill effect on a null object? And I can't put use expression on Colorama output cycle either.


Return to posts index

Joe Clay
Re: Expression to control Channel Range (in Hue/Saturation)?
on Jun 22, 2016 at 9:19:10 pm

So you're trying to take that color from the fill and apply it to other layers? If that's the case, unfortunately Colorama won't output a color that you can apply to other layers.

On any color parameter, you can add this kind of expression.

hsla = rgbToHsl(value);
hsla[2] = .3; //change this value, link it to a slider or whatever
hslToRgb(hsla);


Joe Clay
Workbench.tv


Return to posts index


Jeang Jenq Loh
Re: Expression to control Channel Range (in Hue/Saturation)?
on Jun 23, 2016 at 8:36:57 pm

Thanks Joe! That works!

Thanks Joe! That works great!


Return to posts index

Joe Clay
Re: Expression to control Channel Range (in Hue/Saturation)?
on Jun 23, 2016 at 9:17:14 pm

Awesome! You're welcome!

Joe Clay
Workbench.tv


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]