# maya_test_tools
maya 测试工具包
## 目录
- [快速开始](#快速开始)
* [安装](#安装)
* [使用](#使用)
- [版权说明](#版权说明)
## 快速开始
### 安装
注意下方的python是你的Python, 正常情况下可以直接通过python调用, 而Maya的python一般是C:\Program
Files\Autodesk\<Maya版本>\bin\mayapy.exe
```commandline
python -m pip install maya-test-tools
```
在windows下maya的安装例子
注意:
1. 请将Maya路径替换为自己的。
2. 请使用cmd
```commandline
"C:\Program Files\Autodesk\Maya2018\bin\mayapy.exe" -m pip install cpmel
```
### 使用
#### 打开文件
```python
from maya_test_tools import open_file
open_file('maya file path')
```
### 在命令行下询问是否用maya gui打开当前场景.
```python
from maya_test_tools import question_open_maya_gui
question_open_maya_gui()
```
## 版权说明
该项目签署了Apache-2.0 授权许可,详情请参阅 LICENSE
Raw data
{
"_id": null,
"home_page": null,
"name": "maya-test-tools",
"maintainer": null,
"docs_url": null,
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "cpcgskill <cpcgskill@outlook.com>",
"download_url": "https://files.pythonhosted.org/packages/2c/10/755cf9d6ed1bb46859296eac6642170e7d64caa74eb8da7fc06a848f5972/maya_test_tools-0.1.2.tar.gz",
"platform": null,
"description": "# maya_test_tools\r\n\r\nmaya \u6d4b\u8bd5\u5de5\u5177\u5305\r\n\r\n## \u76ee\u5f55\r\n\r\n- [\u5feb\u901f\u5f00\u59cb](#\u5feb\u901f\u5f00\u59cb)\r\n * [\u5b89\u88c5](#\u5b89\u88c5)\r\n * [\u4f7f\u7528](#\u4f7f\u7528)\r\n- [\u7248\u6743\u8bf4\u660e](#\u7248\u6743\u8bf4\u660e)\r\n\r\n## \u5feb\u901f\u5f00\u59cb\r\n\r\n### \u5b89\u88c5\r\n\r\n\u6ce8\u610f\u4e0b\u65b9\u7684python\u662f\u4f60\u7684Python, \u6b63\u5e38\u60c5\u51b5\u4e0b\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7python\u8c03\u7528, \u800cMaya\u7684python\u4e00\u822c\u662fC:\\Program\r\nFiles\\Autodesk\\<Maya\u7248\u672c>\\bin\\mayapy.exe\r\n\r\n```commandline\r\npython -m pip install maya-test-tools\r\n```\r\n\r\n\u5728windows\u4e0bmaya\u7684\u5b89\u88c5\u4f8b\u5b50\r\n\r\n\u6ce8\u610f:\r\n\r\n1. \u8bf7\u5c06Maya\u8def\u5f84\u66ff\u6362\u4e3a\u81ea\u5df1\u7684\u3002\r\n2. \u8bf7\u4f7f\u7528cmd\r\n\r\n```commandline\r\n\"C:\\Program Files\\Autodesk\\Maya2018\\bin\\mayapy.exe\" -m pip install cpmel\r\n```\r\n\r\n### \u4f7f\u7528\r\n\r\n#### \u6253\u5f00\u6587\u4ef6\r\n\r\n```python\r\nfrom maya_test_tools import open_file\r\n\r\nopen_file('maya file path')\r\n```\r\n\r\n### \u5728\u547d\u4ee4\u884c\u4e0b\u8be2\u95ee\u662f\u5426\u7528maya gui\u6253\u5f00\u5f53\u524d\u573a\u666f.\r\n\r\n```python\r\nfrom maya_test_tools import question_open_maya_gui\r\n\r\nquestion_open_maya_gui()\r\n```\r\n\r\n## \u7248\u6743\u8bf4\u660e\r\n\r\n\u8be5\u9879\u76ee\u7b7e\u7f72\u4e86Apache-2.0 \u6388\u6743\u8bb8\u53ef\uff0c\u8be6\u60c5\u8bf7\u53c2\u9605 LICENSE\r\n\r\n\r\n\r\n\r\n",
"bugtrack_url": null,
"license": "Apache Software License (Apache 2.0)",
"summary": "Maya \u6d4b\u8bd5\u5de5\u5177\u5305",
"version": "0.1.2",
"project_urls": {
"Bug Tracker": "https://github.com/cpcgskill/maya_test_tools/issues",
"Homepage": "https://github.com/cpcgskill/maya_test_tools"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "cd28b08d06b3f61c22ee2f31be3c0a156f4e3ec81b2331ef5faae8b619231cb9",
"md5": "1832744acf3ba35dce9a107d30b22513",
"sha256": "8257375c477a34d35e6d5692775c5485181f236cb797062376279ccff6082550"
},
"downloads": -1,
"filename": "maya_test_tools-0.1.2-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "1832744acf3ba35dce9a107d30b22513",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7",
"size": 6084,
"upload_time": "2024-10-06T08:51:33",
"upload_time_iso_8601": "2024-10-06T08:51:33.117522Z",
"url": "https://files.pythonhosted.org/packages/cd/28/b08d06b3f61c22ee2f31be3c0a156f4e3ec81b2331ef5faae8b619231cb9/maya_test_tools-0.1.2-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2c10755cf9d6ed1bb46859296eac6642170e7d64caa74eb8da7fc06a848f5972",
"md5": "b5686d717a99684b6c4fe64efd7a23a5",
"sha256": "95f0751e6bb40d7fcb50606c26c5689726cd6cf81c90e489d0e9486f381efb9a"
},
"downloads": -1,
"filename": "maya_test_tools-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "b5686d717a99684b6c4fe64efd7a23a5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7",
"size": 6135,
"upload_time": "2024-10-06T08:51:34",
"upload_time_iso_8601": "2024-10-06T08:51:34.989050Z",
"url": "https://files.pythonhosted.org/packages/2c/10/755cf9d6ed1bb46859296eac6642170e7d64caa74eb8da7fc06a848f5972/maya_test_tools-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-06 08:51:34",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cpcgskill",
"github_project": "maya_test_tools",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "maya-test-tools"
}