text: In the absence of an external field, the director of a liquid crystal is free to point in any direction. It is possible, however, to force the director to point in a specific direction by introducing an outside agent to the system. For example, when a thin polymer coating (usually a polyimide) is spread on a glass substrate and rubbed in a single direction with a cloth, it is observed that liquid crystal molecules in contact with that surface align with the rubbing direction. The currently accepted mechanism for this is believed to be an epitaxial growth of the liquid crystal layers on the partially aligned polymer chains in the near surface layers of the polyimide.
  Several liquid crystal chemicals also align to a command surface which is in turn aligned by electric field of polarized light. This process is called photoalignment.