-
Modify Expression ” Auto Scale Text”
Hello Experts, I need some help to modify the below expression.
This auto-scale text expression works perfectly with the width of the text.
But when changing the height of text it didn’t work.Can you help me to build an expression like ( width -100, height -200)?
w=thisComp.width-100
resize = (w/Math.round(thisLayer.sourceRectAtTime().width))*100;if (Math.round(thisLayer.sourceRectAtTime().width) > w){
[resize,resize]
}else
[100,100];
Really appreciate your help.
Thank You,
Nuwan T.