Copy link to clipboard
Copied
When I tie individual color channels to Source text then it gives an error expression
How can I assign a color to the text layer for editing ?
red = thisComp.layer("R").text.sourceText;
green = thisComp.layer("G").text.sourceText;
blue = thisComp.layer("B").text.sourceText;
alpha = thisComp.layer("A").text.sourceText;
Color [red, green, blue, alpha]
Try:
red = thisComp.layer("R").text.sourceText.value;
green = thisComp.layer("G").text.sourceText.value;
blue = thisComp.layer("B").text.sourceText.value;
alpha = thisComp.layer("A").text.sourceText.value;
[red, green, blue, alpha]
Copy link to clipboard
Copied
Try:
red = thisComp.layer("R").text.sourceText.value;
green = thisComp.layer("G").text.sourceText.value;
blue = thisComp.layer("B").text.sourceText.value;
alpha = thisComp.layer("A").text.sourceText.value;
[red, green, blue, alpha]
Copy link to clipboard
Copied
Thank you very much, it works