By creating self-induced vortexlike defects in the nematic liquid crystal layer of a light valve, we demonstrate the realization of programable lattices of optical vortices with arbitrary distribution in space. On each lattice site, every matter vortex acts as a photonic spin-to-orbital momentum coupler and an array of circularly polarized input beams is converted into an output array of vortex beams with topological charges consistent with the matter lattice. The vortex arrangements are explained on the basis of light-induced matter defects of both signs and consistent topological rules.