![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
nuomizong
这个作者很懒,什么都没留下…
展开
-
Maya Python 最近点
active_sel = maya.OpenMaya.MSelectionList()maya.OpenMaya.MGlobal.getActiveSelectionList(active_sel)dag = maya.OpenMaya.MDagPath()active_sel.getDagPath(0, dag)mesh_fn = maya.OpenMaya.MFnMesh(dag)...原创 2019-02-07 10:30:58 · 732 阅读 · 0 评论 -
Maya Python 移除命名空间
# remove all namespaces in the scenenamespaces = maya.cmds.namespaceInfo(listOnlyNamespaces=True, recurse=True)namespaces.remove("UI")namespaces.remove("shared")namespaces.sort(reverse=True)for ...原创 2019-02-07 19:28:59 · 2958 阅读 · 0 评论 -
Maya Python 变换
# select something.active_sel = maya.OpenMaya.MSelectionList()maya.OpenMaya.MGlobal.getActiveSelectionList(active_sel)active_sel.getDependNode(0, obj)# get transform.transformFn = maya.OpenMaya...原创 2019-02-08 00:24:03 · 559 阅读 · 0 评论