Dan,
Yeah, that’s the strange thing. When I created a new project and input the expression again, it all worked fine. I guess I might of had a typo or something that I didn’t see?
Anyway, here is the final expression on the fill color of a shape layer’s rectangle which allows a hidden text box control to change the hue of the fill. The reason for this is that with the text template feature in After Effects, I can create a template which the fill color can be changed in Premiere on the fly.
rgb = content(“Rectangle 1”).content(“Fill 1”).color;
n = parseFloat(thisComp.layer(“[Test]”).text.sourceText);
hsl = rgbToHsl(rgb);
changeHsl = [(n/360) , 1 , hsl[2] , hsl[3]];
hslToRgb(changeHsl);
Thanks for the help!
*steve