Thanks Scott!
I’ve brought a coder into the mix and he produced the below expression which worked perfectly although we’re now struggling with trying to apply it to 3 layers and find the max value from them.
Any ideas how to do this? Thanks so much for the help!
Layer1Width = thisComp.layer("LINE_01").sourceRectAtTime().width;
Layer2Width = thisComp.layer("LINE_02").sourceRectAtTime().width;
Layer1Ratio = 100 * 1700 / Layer1Width;
Layer2Ratio = 100 * 1700 / Layer2Width;
Layer1Ratio = Layer1Ratio > 100 ? 100 : Layer1Ratio;
Layer2Ratio = Layer2Ratio > 100 ? 100 : Layer2Ratio;
if(Layer1Width > Layer2Width ) [Layer1Ratio, Layer1Ratio] else [Layer2Ratio, Layer2Ratio];