Orientational isomerism controlled by the difference in electronic environments of a self-assembling heterodimeric capsule.