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!
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)
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)
Copy link to clipboard
Copied
Oh!
Thank you very much!