“cmd.intra_rms” calculates rms fit values for all states of an object over an atom selection relative to the indicated state. Coordinates are left unchanged. The rms values are returned as a python array.
cmd.intra_rms(string selection, int state)
def intra_rms(selection, state=0, quiet=1):