• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Binding an expression: color then text layer

New Here ,
Jul 03, 2017 Jul 03, 2017

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]

Image.png

Views

370

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advisor , Jul 03, 2017 Jul 03, 2017

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]

Votes

Translate

Translate
Advisor ,
Jul 03, 2017 Jul 03, 2017

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]

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 03, 2017 Jul 03, 2017

Copy link to clipboard

Copied

LATEST

Thank you very much, it works

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines