The preferred glutarimide polymers are those which have been prepared from acrylic polymers such as poly(methyl methacrylate) and copolymers thereof by reaction in accordance with the aforementioned Kopchik invention with ammonia or methylamine so that about 1 to 100% of the acrylic ester groups are imidized.