Skip to content

Module template for easy drag-and-drop installation using provided mel script.

License

Notifications You must be signed in to change notification settings

robertjoosten/maya-module-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maya-module-installer

Module template for easy drag-and-drop installation using provided mel script.

Description

Add the module which is located in the same directory as the .mel file into the first available MAYA_MODULE_PATH directory. It doesn't matter where on disk the module lives as the script will make sure the path in the .mod file links to the correct place. There are some basic sanity checks in place to make sure the script doesn't error out. This includes Maya version compatibility with the module. Permissions of the directories files have to be written to and incorrectly formatted module files.

The reason for creating this script is that I have always had trouble finding a good way to distribute scripts. Especially less technical users might have trouble running python/mel code. This method will make it as easy as unpacking the package anywhere on disk and dragging the provided mel file into Maya. The template maya module file can be specific to certain versions of maya, language and operating system. It is also possible to extend the environment variables and adding a userSetup.py. This flexibility will allow you to run code on startup and provide the users with for example a custom shelf that is easily accessible to the user.

Requires

  • Template .mod file ( place <PATH> where normally the file path would go )
  • Maya module ( scripts/icons/plug-ins directories etc. )

Usage

Drag and drop the mel file into Maya or run source <MEL_FILE>;.

Maya Module Documentation

About

Module template for easy drag-and-drop installation using provided mel script.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published