0
Community Beginner
,
/t5/after-effects-discussions/copy-font-and-size-from-text-layer/td-p/13138375
Aug 16, 2022
Aug 16, 2022
Copy link to clipboard
Copied
Hi guys,
Another question here, but I am not sure if this is possible... :')
I have a Text layer linked to a Slider, which makes the text into customizable numbers, good there.
It looks like this:
Red layer: text linked to slider
Blue layer: normal text
What I need to do is the red layer to read the 'Font' and 'Size' from the blue layer, but not the 'Source Text'.
I do not now if that is even possible, but will have a try asking you guys!
Thank you!
TOPICS
Expressions
,
FAQ
,
How to
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer
Community Expert
,
Aug 16, 2022
Aug 16, 2022
Something like this, probably:
txt = effect("Slider Control")("Slider").value.toFixed(0);
s = thisComp.layer("Blue Layer").text.sourceText.style;
style.setFont(s.font).setFontSize(s.fontSize).setText(txt)
Community Expert
,
/t5/after-effects-discussions/copy-font-and-size-from-text-layer/m-p/13138611#M208466
Aug 16, 2022
Aug 16, 2022
Copy link to clipboard
Copied
Something like this, probably:
txt = effect("Slider Control")("Slider").value.toFixed(0);
s = thisComp.layer("Blue Layer").text.sourceText.style;
style.setFont(s.font).setFontSize(s.fontSize).setText(txt)
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Spade Studio
AUTHOR
Community Beginner
,
LATEST
/t5/after-effects-discussions/copy-font-and-size-from-text-layer/m-p/13140314#M208529
Aug 17, 2022
Aug 17, 2022
Copy link to clipboard
Copied
Oh!
Thank you very much!
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

