Hi. I have found a solution. The Clockwork package has a node called View.Type which worked perfectly.
Thanks Tim