Maya plugin template
A Maya plugin template
repo: https://github.com/hannesdelbeke/maya-plugin-template
Dev¶
I could combine the installer.mel with the main plugin my_plugin.py, so there’s only a single file to drag and drop. But keeping them separate means the plugin contains less code, so it’s easier to read what the plugin does. And it saves dev time.
existing Maya templates research
Backlinks¶
- Maya plugin
- A plugin can only be a single
.pyfile, because the plugin folder is not in the Python path.
If you want to include additional files, I recommend to distribute them as a Python module in thescriptsfolder, and import them from the plugin. You can also set them as a dependency, see Maya plugin template. - Python packages (a custom solution can be seen in Maya plugin template)
- A plugin can only be a single
- Plugins are more modular than modules
- A cleaner solution is to package your tool in a Maya plugin using the Maya plugin template. It’s more modular, can be enabled/disabled per user in Maya unlike Maya modules. And dependencies can be pip installed, so you can keep them up to date, and avoid duplication.
- easily install dependencies from requirements in the Maya plugin template
- Maya created controls - dev log
- First I created a repo from the Maya plugin template
I assumed it would work since it was released.
- First I created a repo from the Maya plugin template
- plugget - create a self-installing plugin brainstorm
- the Maya plugin template already has an installer, so we can use this. (I think the installer already installs dependencies)
- my Maya projects
- plugin templates