New polymers with photo-controllable anchoring energy and tunable pretilt angle within 90°-0°range for nematic liquid crystals alignment were developed. The functional properties of polymers are provided by the effect of photoinduced planar alignment and the presence of side hydrocarbon chains in macromolecules that create a homeotropic alignment effect. Applying photosensitive alignment layers based on polymers with side benzaldehyde and hydrocarbon groups, fabrication of optical devices with refractive index gradient, uniform cell gap, and low operation voltage is possible. The developed materials are suitable for simple fabrication of tunable liquid crystal lenses.