Greets all, I've been researching this topic for the last few days and I think the answer is something along the lines of "it's not possible", but maybe someone has some insight on this I don't.
So basically we're setting up our Maya/Python development environment at the studio here and we'd like to be able to import a bunch of modules/scripts in userSetup.py then be able to access all that from external scripts without having to do an explicit import in the script, similar to how you do global variables/sourcing in MEL. I'm sure this has been asked before, and i did take a look at the pythonScripts.py file that comes with the devkit, is it possible to do something similar to what's presented there to get this sort of thing working? So to recap with an example: in userSetup.py import maya.cmds as MPyCmds in someOtherScript.py access MPyCmds without having to re-import. Not a critical thing, just curious as to if it's do-able. Thanks all! --~--~---------~--~----~------------~-------~--~----~ Yours, Maya-Python Club Team. -~----------~----~----~----~------~----~------~--~---
