Home Website Youtube GitHub

Help for creating custom component

Hello,

Could someone give me some advice or tell me where I can find information on how to create my own custom component for Mgear?

More specifically, the Mgear installation I use is the one from my work, which is installed on the network and mapped to Y:. This installation cannot be modified. So I can´t copy nothing there.

My question is, if there’s a way I can create a local structure for my component? What folders should it contain? And how can I make the Mgear installation detect this path and load my component so I can test it?

Thank you

Hi @Llorens ! Happy new year!
There is some information about alternative installations on the youtube channel.
for example I use a simple .bat file to set my environment.

Here is a example setting some env var for mgear

@ECHO OFF


set MAYA_MODULE_PATH=C:\Your mgear installation folder

rem ### optional mgear  env var
set MGEAR_SHIFTER_COMPONENT_PATH=D:\your path to custom components
set MGEAR_SHIFTER_CUSTOMSTEP_PATH=D:\your custom step folder for relative paths
rem ### the project name will be displayed in the mgear menu title like "mgear(Project)" for example I use DEV for development
set MGEAR_PROJECT_NAME=DEV

rem ## Env var to avoid python creates .pyc files
set PYTHONDONTWRITEBYTECODE=1


start "" "C:\Program Files\Autodesk\Maya2026\bin\maya.exe"

Menu with MGEAR_PROJECT_NAME
image

Hi @Miquel ! Happy new year :wink:! Thanks I’ll try this