1、克隆maya-usd的代码https://github.com/Autodesk/maya-usd
2、使用python3.7编译安装usd(参考https://www.cnblogs.com/BstuderBlog/p/15840609.html)
3、下载maya sdk到maya sdk目录
4、打开Visual Studio 开发人员命令行提示符
执行命令:
python "maya-usd目录\build.py" --maya-location "maya安装跟目录" --build-args="-DBUILD_WITH_PYTHON_3=ON,PYTHON_INCLUDE_DIR:PATH=python目录\include,PYTHON_LIBRARY:FILEPATH=python目录\python37.dll,-DPYTHON_EXECUTABLE:FILEPATH=python目录\python.exe" --pxrusd-location USD编译目录 --devkit-location mayasdk目录\devkitBase\devkit maya-usd目录\build\workspace
标签:usd,maya,python,编译,--,目录 From: https://www.cnblogs.com/BstuderBlog/p/16953157.html