source repo from https://github.com/volodinroman/CMakeMaya I add pydoit to make all the process easier.
- run
git clone [email protected]:FXTD-ODYSSEY/CMakeMaya.git
clone repo - run
git submodule update --init
clone all the submodule - run
pip install poetry
install poetry (skip this if you already install) - run
poetry install
install all python dependencies - run
poetry shell
get into the python virtual environment - run
doit init
initialize the build environment
If you run to this error, you will need to :
- add
C:\Python310\Scripts
to the Environment Path - use administrator rights to open VSCode
ERROR: Could not install packes due to an OSError: [Error 13] Permission denied: 'C:\\Python310\\Scropts\\dul-receive-pack'
Consider using the `--user` option or check the permissions
doit init
will install chocolatey then use choco
to install VS Build Toolkit
& CMake
Be aware that, VS Build Toolkit
need to install C++ requirement manually.
after choco
install finished, it will open the setup.exe
program.
run doit sdk -v 2020
could download the SDK toolkit online and extract to the SDK folder with maya<version>
name.
run doit list
would list all available command.
run doit new
to create a template project for C++ into the projects folder.
run doit compile
or doit c
to compile the C++ plugin.
doit help c
to get command help
doit c -p weightDriver -v 2020
this command compile the weightDriver plugin for Maya2020
if not specify the project and version, then compile all the projects to 2020 version.
-p
flag send the projects relative folder to locate the compile CMakeLists.txt
To compile the weightDriver you can use doit c -p IngoClemens/weightDriver
.
you can use the end folder for short, eg: doit c -p weightDriver
IngoClemens/weightDriver
compile to Maya 2020.4 will be fail issue
you need to modify the source code for compatibility.
robertjoosten/maya-dem-bones
require pybind11
.
however, pyblind11
drop support for python2 in the new version.
if you want the lower version, you can checkout pyblind11
branch to v2.9
.