Answered
Change colours using code
Hello, I am trying to figure out how to change a fill colour with code. For example, if I have a solid with a colour overlay of red how can I change this to another hex value? Many thanks.
Hello, I am trying to figure out how to change a fill colour with code. For example, if I have a solid with a colour overlay of red how can I change this to another hex value? Many thanks.
You just need to make sure you get the value of the sourceText:
var hexColor = thisComp.layer("TextLayer").text.sourceText.value;
hexToRgb(hexColor)Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.