Guest-induced assembly of tetracarboxyl-cavitand and tetra(3-pyridyl)-cavitand into a heterodimeric capsule via hydrogen bonds and CH-halogen and/or CH-pi interaction: control of the orientation of the encapsulated guest.