A planar waveguide containing a nonlinear film whose thickness varies in the transverse direction can be used to simulate propagation in a one (transverse)-dimensional medium with constant refractive index but a spatially varying nonlinearity. This idea is illustrated by finding the steady-state solutions for several examples.