![custom shelf maya mac hotkey custom shelf maya mac hotkey](https://3wga6448744j404mpt11pbx4-wpengine.netdna-ssl.com/wp-content/uploads/2015/09/4.png)
PlugInRootFolderPath = os.path.abspath(os.path.join(plugPath, os.pardir)).replace('\\', '/') PlugPath = inspect.getfile(inspect.currentframe()) # This is where the plug in is currently being loaded from # Declare globals so that we can modify the variables Override incrementalSaveScene (due to AD bug)
#Custom shelf maya mac hotkey mod#
Create a mod file in user local that adds plug in path to this plug in to retain auto load Add plug in paths to the Maya environment On initialization, this function gets called to: Raise RuntimeError, 'Failed to unregister command: %s\nDetails:\n%s' % (e, traceback.format_exc()) registerCommand(LCGInitialize.kPluginCmdName) Raise RuntimeError, 'Failed to register command: %s\nDetails:\n%s' % (e, traceback.format_exc()) Plugin.registerCommand(LCGInitialize.kPluginCmdName, LCGInitialize.cmdCreator) Plugin = OpenMaya.MFnPlugin(obj, 'LCG United', '1.0', 'Any') Raise Exception('Plugin not supposed to be invoked - only loaded or unloaded.') The presence of this function tells Maya that the plugin produces, andĮxpects to be passed, objects created using the Maya Python API 2.0.Ĭlass LCGInitialize(OpenMaya.MPxCommand): Print '-Start Maya Plug in Paths-'įor path in ("MAYA_PLUG_IN_PATH").split(' '): Print '-Start Maya Python Paths-'įor path in ("PYTHONPATH").split(' '): Print '-Start Maya Shelf Paths-'įor path in ("MAYA_SHELF_PATH").split(' '): Print '-Start Maya Icon Paths-'įor path in ("XBMLANGPATH").split(' '):
![custom shelf maya mac hotkey custom shelf maya mac hotkey](https://s3.manualzz.com/store/data/029687242_1-37b5aafc1270f143a0fc5b8f30bb6e96-360x466.png)
Print '-Start Maya Script Paths-'įor path in ("MAYA_SCRIPT_PATH").split(' '):