The environmentally controlled photoisomerization of probe molecules containing azobenzene moieties in solid poly(methyl methacrylate)