You're right - when I run it on 8.5, I get the error.

Given that it works on 2008 (or, at least, 2008 ext 2), it seems it's
simply a bug with 8.5.

This seems even more likely if you exam the line it was trying to
execute when it got a syntax error:

<function dirPath at 0x...>  "C:/.../My Documents" "directory";

...in other words, it's formatting the function (using it's string
representation!) and it's arguments as though they're a mel command,
and trying to run the result... in python.

Only workaround I can think of would be a quick dip back into mel,
using maya.mel.eval...

- Paul

PS - Yeah, pastebin rocks... thank Farsheed for turning me onto that
one. =)  Can you believe I questioned it's usefulness at first? =P

--~--~---------~--~----~------------~-------~--~----~
Yours,
Maya-Python Club Team.
-~----------~----~----~----~------~----~------~--~---

Reply via email to