I don't have time to troubleshoot this right now (my machine is in the middle of a render), but in case you don't get an answer here soon, you might also try the Creative COW expressions forum. The code-types tend to hang out there more. :)
- The Great Szalam
(The 'Great' stands for 'Not So Great, in fact, Extremely Humble')
No trees were harmed in the creation of this message, but several thousand electrons were mildly inconvenienced.