一个好用的绑定核心库
Project description
maya_rig_core
一个好用的绑定核心库
目录
快速开始
安装
注意下方的python是你的Python, 正常情况下可以直接通过python调用, 而Maya的python一般是C:\Program
Files\Autodesk<Maya版本>\bin\mayapy.exe
python -m pip install maya-rig-core
在windows下maya的安装例子
注意:
-
请将Maya路径替换为自己的。
-
请使用cmd
"C:\Program Files\Autodesk\Maya2018\bin\mayapy.exe" -m pip install maya-rig-core
使用
创建控制器与组
from rig_core.all import *
ctx = Ctx()
con = ctx.controller()
grp = ctx.add_group_to_object(con)
创建名称空间上下文
from rig_core.all import *
ctx = Ctx()
with ctx.enter_new_name_space(prefix='prefix_')
'''your code'''
版权说明
该项目签署了Apache-2.0 授权许可,详情请参阅 LICENSE
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
maya_rig_core-0.1.2.tar.gz
(13.2 kB
view hashes)
Built Distribution
Close
Hashes for maya_rig_core-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b380fd030b0b3c5d9de23303ed24d3b2d5ac9eca1e31adeee32213cabf164889 |
|
MD5 | b3ee911bea80057c5d3c8fea4e77ac6e |
|
BLAKE2b-256 | f7775455768e0a7211241230cc2e59c2619f9e8a249f5ed62daa93f666ddd115 |