Optical anisotropy and rigidity of molecules of a comb-like polymer with mesogenic side groups