Scots star Ewan McGregor has revealed his role in a forthcoming TV series required him to get his first perm in decades.