I have a total of 127 layers that I want to align edge-to-edge horizontally with each other. I think this could be done with expressions. Something like:
[position of the layer above the current one in the layer stack (a.k.a. the layer with a -1 lower index)]+[50% of the horizontal resolution of the layer above the current one (since anchor point is centered and that's where the position is measured from]+[50% of the horizontal resolution of the current layer]
I believe something like that should mathematically align all layers edge-to-edge horizontally, even though they all have different aspect ratios (but share the same vertical resolution).
Hey Filip, there are some other things to take into account.
1. Are layers scaled in any ways or all 100% original size?
2. What type of layers are they - media, or variety of different ones? (Including shapes/texts, etc)
3. Are anchor points changed or originally in the center?
Your assumption are spot on and it is possible to do that, just its required to take into account on above. Based on your answers I could provide you a way to deal with it.