Maya FunctionSet (maya_fn)
A package that decompose core maya.cmds and maya.api features to a set of simple functions.
Tests
The recommended approach for running tests is to setup a virtual environment. Edit the activate.bat script to include the /src directory and set a MAYA_LOCATION environment variable, as shown below.
python -m virtualenv venv
venv\Scripts\activate.bat
pip install -r requirements/dev.txt
# activate.bat
set "PYTHONPATH=%VIRTUAL_ENV%\..\src"
set "MAYA_LOCATION=C:\Program Files\Autodesk\Maya2020"
You can execute the following tox environments:
toxruns all environments, including:mayatox -e mayaruns the maya teststox -e blackruns Black on the code.tox -e lintruns flake8 and pydocstyles on the code.