Always wondered how to do this

Well it works, but it's a lot of trouble.