Forum Replies Created

Page 2 of 2
  • 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

  • I’m doing this in the color property of the rectangle’s fill.

Page 2 of 2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy