Two portraits in the National Museum of Scotland held the key to the revival of the ancient cloth.