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

Multine textbox with different colors for each line

New Here ,
Feb 08, 2025 Feb 08, 2025

Hi there,

 

I'm developing a simple tool for After Effects that feeds a multi line textbox with some log of the entire process. This same log can also be exported in a separate txt file later.

Is it possible to use different color lines on a multi line text box? My idea is using like red for errors, gray for info and green for success, for example.

 

I tried many times and I'm not coming up with anything. Almost sure it is impossible, but I wanted to hear from you wizards here 🙂

 

Thanks in advance.

TOPICS
Expressions , Scripting
82
Translate
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
Community Expert ,
Feb 09, 2025 Feb 09, 2025

I'd use a text animator, much easier.

 

helped.pngexpand image

 

  • Expand your text layer on the timeline until you can see Animate
  • Open this menu and add Fill Color
  • Expand the new Animator 1 and expand Advanced
  • Change the Units to Index
  • Set Based On to Lines
  • And then use the Start and End properties to set the colours.  

 

You can add as many Animator Fills as you want.  

 

But... just reading back your post... all the above was assuming you were wanting to display this in a text layer, are you actually wanting to create a coding interface?  Something like Esprima code checker?

Translate
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 ,
Feb 09, 2025 Feb 09, 2025
LATEST

Hi there, thanks for the feedback, but thats not quite what I'm looking for.

I'm developing a UI panel script, and in this panel I have a multi line text box. Its an UI element, not an animation text box, like this:

 

Captura de tela 2025-02-09 091757.pngexpand image

 

In this box I'm having all the log being fed, e.g.:

[INFO] File1.aep opened.
[ERROR] There was a problem openening File1.aep
[SUCCESS] File1.aep opened succesfully.

What I would like to do is each of those lines be in a different color, but from what I gathered, I don't think its possible to use multiple color lines on a standard UI multi line text box.

Translate
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