An approximate method consists in applying the total of the static seismic force at each of the planar frames.
Since the forces are the same, the lateral floor rigidities at each level can be found dividing the (same) accumulated force (from top to level) by the displacement.
Alternatively, one can work with relative rigidities, taking the inverse of the lateral displacement, multiplied for some constant, to have more workable figures.
Knowing the rigidities, finding its centre of gravity, gives the centre of rigidity of the building at each floor level.
This procedure is useful when it is wanted to check the calculations, since the forces over each frame can be found, and even torsion can be included.