I mostly used a POST Python script to edit my eye rig.
I can’t figure out what you are trying to show in that screenshot. What’s the problem?
For extending and editing modules, this is what I do. I don’t touch the files in the mGear installation:
- In my Maya.env file, I add these lines:
MAYA_MODULE_PATH = P:\OUR\STUDIO\PATH\tools\mgear_2.6.1
MGEAR_SHIFTER_COMPONENT_PATH = P:\OUR\STUDIO\PATH\tools\mgearCustomModules
MGEAR_SHIFTER_CUSTOMSTEP_PATH = P:\OUR\STUDIO\PATH\tools\data\build
MGEAR_SHIFTER_COMPONENT_PATH is the variable you want to add to do custom modules.
Then inside that folder that you specify, you can just copy/paste an entire existing module to use it as a starting template. You can find all the modules here: mgear/scripts/mgear/maya/shifter/component/
Inside your copied module, open up the guide.py file and find the lines that look like this. For example in the control_01 module:
TYPE = "control_01"
NAME = "control"
Change those to something else. For example, I copied control_01 and I made a special module called “hook” that doesn’t have any icons, and doesn’t get added as a “control” in the rig, but can still have all the space switches, etc, for special mechanical purposes in my rig.
TYPE = "hook_01"
NAME = "hook"
If you change those names, the next time you load Maya, if you have this module in your custom module folder from step 1, then this custom module will show up in your list. And you can just freely edit it there, without breaking any existing mGear modules. I’ve found you have to restart Maya to make sure all your modules reload properly. There is a menu item to reload modules, but it didn’t always work for me.
- Bonus: Back up your custom module directory in your own git repository.