-
New Text Styling + Old Expression?
Hello,
I recently started writing with the new expressions in AE2020 where you can access font styles. I want to pull font styling from either text sources or from controllers elsewhere in my project probably a combination of both, and apply it to a text source generated by an expression.
I made a simple ranger mapper using the linear expression that also rounds down as a floor. The expression works. If I combine it with a previous part of the project where I linked the text styling (that also works) between two layers, the layer doesn’t work. They work separately but not when combined onto the same sourceText field. I’m not sure why, can anyone give me a hand it understanding this and the solution? Thanks for the help.
thisComp.layer("FONT SOURCE").text.sourceText.styleinput = thisComp.layer("SLIDER CONTROLS").effect("ANIMATION")("Slider");
inputLow = 0;
inputHigh = 100;
outputLow = 0;
outputHigh = thisComp.layer("SLIDER CONTROLS").effect("VALUE")("Slider");Math.floor(linear(input,inputLow,inputHigh,outputLow,outputHigh))