Harry Potter star gets 'nude role'