Control of the onset of filamentation in condensed media