Skip to main content
Participating Frequently
December 5, 2020
Question

HOW TO SET DIFFERENT STYLES FOR MULTIPLE LINES

  • December 5, 2020
  • 3 replies
  • 1354 views

How can I set different styles for multiple lines. If i have two line, i need to set different styles for both the lines on the same layer

 

 

This topic has been closed for replies.

3 replies

Adobe Expert
December 6, 2020

While line 1 of your Text Layer is actively selected, adjust the settings in the Chracter Panel and/or Paragraph Panel.  Then, select line 2 of your Text Layer and adjust the settings again.  

 

It works just like Photoshop if you've ever adjusted Text Layers in PS.

 

Another approach is to apply Text Animators, using Range Selectors to adjust the characters.

Adobe Expert
December 5, 2020

If you're talking about text you can swipe over a line if text with the type tool and make changes through the character panel for that line. Repeat.

goofy687Author
Participating Frequently
December 6, 2020

Yes i know this part for manually doing it, how can i achieve the same using expressions of changing the style (font, color, size) for the same layer. I have double line (two lines), first line i need a different style, second line i need a different style but using expressions 

Mylenium
Brainiac
December 5, 2020

What do you specifically mean by "style"? Expressions? Layer Styles? Basic text formattting? Something else? You need to clarify and explain better.

 

Mylenium

goofy687Author
Participating Frequently
December 6, 2020

I have tried the below, but this doesn't seem to work

 

display = splits[0] + “\r”;

b = thisComp.layer(“Test”).text.sourceText.getStyleAt(0); // getting style from another layer

style = b;

style.setText(display); // applying style to the display variable which contains some text

finals = display + splits[1]; // adding text to the second line

finals // applying the final text to this text layer.

goofy687Author
Participating Frequently
December 6, 2020

Well, unless "splits" is defined as a function somewhere, this of course cannot work. You code does contain exactly zero actual string processing.

 

Mylenium


I have tried the below also without splits still it doesn't work:

 

display = "this is amazing";
b = thisComp.layer("Test").text.sourceText.getStyleAt(0);
style = b;
style.setText(display) + "sometext";

 

but on the last line if i remove  +"sometext"; then it works such as :

style.setText(display)

 

In general it doesn't allow to add something once you apply the style. 

 

Is there any other way of doing, apply different styles to different lines