Autodesk Maya Plugins

0 views
Skip to first unread message

Martta

unread,
Aug 4, 2024, 1:34:47 PM8/4/24
to depscekemen
HereI discuss various ways you can ship a Maya plugin to end users. Ultimately the methods I present below can be automated and wrapped with scripts or installers (.msi etc.) You can see my [ Git repository ] to get a template project that demonstrate how to generate a windows installer for Maya plugin with CMake and CPack.

Each method as its pros and cons which I will detail below. Personally my preference goes to the Application Plugin method which I find the most robust. This is also the official method to provide plugins through the autodesk app store (see also developer guidelines). Finally this is the method I use in my template project demonstrating how to ship a Maya plugin with CMake/CPack.


Just add a .mod file in the user directory C:\Users\name\Documents\maya\version\modules\. See the Maya documentation to understand this file format. The shelves won't load you will need to include a userSetup.py in your script folder (PYTHONPATH)


The Redshift installer for Windows will automatically register the redshift4maya plugin based on the versions of Maya you selected on the 'Auto-configure Redshift plugins' installer screen. This is done by modifying the Maya.env file for the versions of Maya that were selected.



The section below describes how to perform the same steps that the installer performs automatically, as well as an alternative method of registering the redshift4maya plugin by using a module file.


The Redshift for Maya plugin installation directory includes batch files that let you perform the same registration step that are performed during installation. These batch files can be used, for example, if Maya is installed after Redshift and you wish to register the redshift4maya plugin without reinstalling Redshift. Simply run the batch file associated with the particular version of Maya you want to register the redshift4maya plugin.


An alternative method of registering the redshift4maya plugin is to use a Maya module file. Create a file namedredshift4maya.mod containing the following text (adjust the Maya version as necessary) and place the file in one of Maya's module directories (e.g.Documents\maya\modules).


This can be accomplished either by creating a Maya module file for Redshift, modifying the Maya.env file or by defining system environment variables. We recommend using a Maya module file as it requires the fewest steps as is the least prone to errors.


The installer for macOS automatically installs a module file for each version of Maya it detects on your system. If you have Maya installed in a non-standard location, or you install Mayaafter installing Redshift, you should copy the template module file/Applications/redshift//redshift4maya/redshift4maya.mod.template to a location that is part of Maya's module search paths. Note that the copy of the module template file redshift4maya.mod.template should be renamed to redshift4maya.mod.

3a8082e126
Reply all
Reply to author
Forward
0 new messages