Polyimides were prepared from the reaction of aromatic dianhydrides with novel aromatic diamines having carbonyl and ether groups connecting aromatic rings containing pendant methyl groups. The methyl substituent polyimides exhibit good solubility and form tough, strong films. Upon exposure to ultraviolet irradiation and/or heat, the methyl substituted polyimides crosslink to become insoluble