I made it work with your solution and it’s perfect, but I have a question just for the learning purpose. ☺☺☺
Instead of linearly tracking down(which I think is the best way), I was trying to use ‘for loop’ to find the text layers in 100 opacity, and add those to ‘Math.max(“selected object”.width . . . )’
I wonder if it’s even possible.
I recently learned ‘for loop’ while researching for the problem, and just want to see how it can be done if it’s possible.