Hi,
I'm trying to perform dirmaps via userSetup.py but it seems this does not work in batchrender mode.
I've tried to perform this in userSetup.py directly:
maya.cmds.dirmap( ... )
and also deferred:
maya.utils.executeDeferred( ... )
It just doesn't work when in batchrender mode, although it works fine if you launch the Maya GUI.
If I create the dirmaps in the MEL equivalent (userSetup.mel) it all works fine in both batchrender mode and if you run the Maya GUI. It's just that I do not wish to use userSetup.mel as I'd like to keep everything in python and within userSetup.py.
Does anyone know if this is a limitation of dirmap or what could be going on?
I've noticed that not even a simple print statement ( print 'hello' ) in userSetup.py will show up in the terminal when in batchrender mode.
I'm trying to get this to work with Maya 2014 Extension 1 in Windows 7 and in CentOS. And I've got the same MAYA_SCRIPT_PATH setup when running both the GUI and the batchrender commands (pointing at the dir containing both the userSetup.py and the userSetup.mel) ... but no luck.
Any ideas?
// Fredrik