-
Expression control for only the hue of a fill in a shape layer
Hi All,
Thanks to Mr. Soyka’s really cool hack of the After Effects editable text templates for Premiere, I’ve been able to add fields to change opacity and scaling to my templates.
So, for anyone out there, Mr. Soyka included 🙂
I’ve been trying to figure out how he/you changed the color using a single value and while I was trying to figure it out I was able to see how to extract the hsl values from rgb with the AE expression, but for the life of me I cannot get a suitable expression completed to have the text input control the hue value of the fill of a rectangle.When I pickwhip the color of the fill in the rectangle
it comes back with:content(“Rectangle 1”).content(“Fill 1”).color
but when I try to insert that value into a variable like I’ve seen in so many of the tutorials I’ve gone through like this:
rgb =content(“Rectangle 1”).content(“Fill 1”).color;
hsl = rgbToHsl(rgb)
I get an error saying that the expression result should be dimension 4 not 1 – which I understand, [h,s,l,a], but in all the different tutorials out there, this is how it was done.
Eventually, I’m wanting to use the parseFloat expression to take a numerical value from a hidden text box to change the value of the color of the text box.
Any ideas?
Thanks!
*steve