CPCLI
苍之幻灵-脚手架
目录
快速开始
如果你的Maya有pip那么
cd "C:\Program Files\Autodesk\Maya2018\bin"
mayapy -m pip install CP_CLI
如果没有
-
打开C:\Users\PC\Documents\maya文件夹
-
进入scripts文件夹,如果没有就创建它
-
下载完整的CPCLI代码
-
解压并进入解压完成的文件夹
-
将src目录中的CPCLI文件夹复制到scripts
-
打开maya2018,如果已经打开了就重启它
创建test.py并添加以下代码
#!/usr/bin/python
# -*-coding:utf-8 -*-
from __future__ import unicode_literals, print_function
# 因为是将库放在C:\Users\PC\Documents\maya\scripts下的所以需要初始化maya
try:
import maya.standalone
maya.standalone.initialize()
except:
pass
import CPCLI.core as cli_core
from CPCLI.overall_processing_function import group
from CPCLI.file_filtering_functions import noTypes
from CPCLI.processing_function import deleteBlankLines, deleteUselessStrings
class Config(object):
# 文件过滤函数
file_filtering_functions = [
noTypes(['pyc'])
]
# 整体处理函数
overall_processing_function = [
group(
name=u"TOOL_NAME",
exec_script=u'''\
# 以下是启动脚本
import main
from main import main
main()'''
)
]
# 处理函数
processing_function = [
# 清除空行
deleteBlankLines,
# 清除无用字符串
deleteUselessStrings
]
# 可真可假影响不大
debug = True
class Path(object):
root = r"项目根目录"
src = root + r"\src"
scripts = root + r"\scripts"
build = root + r"\build"
cli_core.build(Config)
版权说明
该项目签署了Apache-2.0 授权许可,详情请参阅 LICENSE
Release files for CP-CLI 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| CP_CLI-1.0.3.tar.gz | 12.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| CP_CLI-1.0.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 28.9 kB
Release files / CP_CLI-1.0.3.tar.gz
| Download URL | CP_CLI-1.0.3.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7701305c2e359c2adce0990b85d9370a5e4ad645ce7cacba77c51eaf6f3f3dfb
|
|
BLAKE2b-256 checksum How to use checksums |
d15edba54310ad818c7b7f3b52a94a817604d89657037ed6659195449e60dbb8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.7
|
Release files / CP_CLI-1.0.3-py2.py3-none-any.whl
| Download URL | CP_CLI-1.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
87b71ccde53e525d82a01725b18e26d1f5e7d7d6795ad474f3659abd39819e3b
|
|
BLAKE2b-256 checksum How to use checksums |
4fab353ba548ec87cb3eb37577aeed208c13b1e2e93555e338cbcad87f71fc3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.7
|