-
sourceRect text layers which play off each other.
Hi,
I’m using sourceRect.time to scale a text layer to a specific width. Works great.
Now I have 2 layers which have the same expression applied and I’m trying to rig them off each other. So:
Layer A scales to designated width unless Layer B is smaller in which case follow that.
I’ve almost got it working with one layer, it scales itself depending on length but also monitors the other layer and adjusts accordingly. When I apply this same expression to the other layer it doesn’t work.
Is there a way to do this without introducing extra layers / Nuls?
Thanks for any help! Kinda urgent 😀
textwidth = thisLayer.sourceRectAtTime().width;
s = 100*1700/textwidth;
b = thisComp.layer("Layer A").transform.scale;if(s < 100) [s,s] else b;