Coder Social home page Coder Social logo

fxtd-odyssey / cmakemaya Goto Github PK

View Code? Open in Web Editor NEW

This project forked from volodinroman/maya-cmake

2.0 1.0 1.0 165 KB

Autodesk Maya cross-platform development environment with CMake

License: MIT License

C++ 77.62% CMake 11.25% Python 9.25% C 1.88%
maya maya-api

cmakemaya's Introduction

CMake for Maya

source repo from https://github.com/volodinroman/CMakeMaya I add pydoit to make all the process easier.

📦Prerequisites

Install Python3 and poetry

  1. run git clone [email protected]:FXTD-ODYSSEY/CMakeMaya.git clone repo
  2. run git submodule update --init clone all the submodule
  3. run pip install poetry install poetry (skip this if you already install)
  4. run poetry install install all python dependencies
  5. run poetry shell get into the python virtual environment
  6. run doit init initialize the build environment

Install poetry

If you run to this error, you will need to :

  1. add C:\Python310\Scripts to the Environment Path
  2. 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

Prepare C++ compile environment

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.


Download Maya SDK

run doit sdk -v 2020 could download the SDK toolkit online and extract to the SDK folder with maya<version> name.

🔨Usage

doit list

run doit list would list all available command.

doit new

run doit new to create a template project for C++ into the projects folder.

doit compile

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

⚠Notice

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.

✒blog

https://blog.l0v0.com/posts/5875a169.html

cmakemaya's People

Contributors

volodinroman avatar zsd-tim avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

mineclever

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.