Anisotropy engineering of soft thin films in the undulated magnetic state