On the Confinement of Liquid Crystalline Polymers: a Frederiks-Like Transition