Measure the length of each side, and then add them together. For the sloping surfaces, measure the vertical and horizontal distance, and then use
Pythagoras' Theorum to find out the length of the side.
As an example, I made this:
It's a simplified version of what you have, set up with a grid size of 8.
So for this, you would calculate:
2(112) + 2(72) + 4(sqrt[(48^2) + (80^2)])Which gives you an overall length of
741.18.
For this example, I picked a texture that tiles nicely, yet it's quite obvious when it's misaligned.
The texture is 64x64, so I divided
741.18 by
64 to get
11.58.
This is the scale you would get if you made a brush 741.18 units long and set the texture as fit to face. This ends up being quite stretched, so you would then divide it by a near whole number. In this case I chose
11, giving me a scale of
1.0528, or
1.05.
So change the texture settings to give a texture scale of
1.00 x 1.05, and then reapply using the alt + right click method.
On the left is the seam with a texture scale of 1.00 x 1.00, and on the right is the seam with a scale of 1.00 x 1.05:
Unfortunately it won't come out looking absolutely perfect except for in certain rare cases, but it does make the seam a lot less noticeable.