Skip to main content

Maya的便利工具

Project description

项目说明

此工具内含各种实用工具。仅为测试用!!!

仅支持Maya2023及以上版本。

参照

安装并获取更新

使用 pip 安装

pip install custom-maya

需要使用 mayapy 环境安装。

测试用

Xcopy custom_maya "C:\Program Files\Autodesk\Maya2023\Python\Lib\site-packages\custom_maya" /E/H/C/I

如何设置IDE

制作从名为 python 的命令创建指向 mayapy 的软链接

cd "C:\Program Files\Autodesk\Maya2023\bin"
mklink python.exe mayapy.exe

将IDE的解释器设置为

"C:\Program Files\Autodesk\Maya2023\bin\python.exe"

例子

获取某根目录下所有Maya文件的信息


打包上传到pipy

升级

#cd "C:\Program Files\Autodesk\Maya2023\bin"
mayapy.exe -m pip install --upgrade pip
mayapy.exe -m pip install --upgrade build
mayapy.exe -m pip install --upgrade pip
python -m build

上传测试包

python -m twine upload --repository testpypi dist/*

上传正式版本包

python -m twine upload dist/*

安装本地whl包

cd "C:\Program Files\Autodesk\Maya2023\bin"
mayapy.exe -m pip install D:\github\custom_maya\dist\custom_maya-0.0.23-py3-none-any.whl

测试本地代码

构建

python -m build

安装到本地

cd "C:\Program Files\Autodesk\Maya2023\bin"
mayapy.exe -m pip install D:\github\custom_maya\dist\custom_maya-0.0.23-py3-none-any.whl --force-reinstall

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

custom_maya-0.0.0.tar.gz (31.0 kB view hashes)

Uploaded Source

Built Distribution

custom_maya-0.0.0-py3-none-any.whl (20.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page