ok i finally got it. But it's such a crap way of having to do it! I made it so that the doLod function was not a function anymore but just a piece of script. Then I made maya source it before each frame and now it works...... oh well.
Babyduck you've been a massive help thank you, thank you!
Alan
Technical Director - Framestore
Currently working on: Your Highness
IMDB