-
Different styles for different lines on same layer
I want to use expressions to apply a different style (font,size,color) to the second line of the same text layer, and the first line should maintain a different style. Is there a way to achieve this using expressions.
I have tried the below but 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.
The above is get a the style font, color etc from another layer apply it to the first line of this layer, but unfortunately this doesn’t seem to work
Sorry, there were no replies found.