An investigation of photo- and pressure-induced effects in a pair of isostructural two-dimensional spin-crossover framework materials.