随笔分类 -  Maya

1
maya_scripts
摘要:MAYA_CM_DISABLE_ERROR_POPUPS=1 MAYA_COLOR_MGT_NO_LOGGING=1 Maya.env中添加环境 阅读全文
posted @ 2023-09-08 15:35 CGRun 阅读(1202) 评论(0) 推荐(0)
摘要:""" This will iterate all modelPanels and remove the "CgAbBlastPanelOptChangeCallback" As such, after running this the following error should be fixed 阅读全文
posted @ 2022-12-16 00:48 CGRun 阅读(4557) 评论(1) 推荐(0)
摘要:import pymel.core as pm # 获取 Maya 中的所有模型编辑器并重置编辑器更改事件 for item in pm.lsUI(editors=True): if isinstance(item, pm.ui.ModelEditor): pm.modelEditor(item, 阅读全文
posted @ 2022-11-29 18:46 CGRun 阅读(1653) 评论(0) 推荐(0)
摘要:Resshift 破解工具Redshift破解工具MaxonAppRedshift_For_Pj 用过手动破解 嫌弃resdhift破解步骤麻烦的可以看这里,比较繁琐,新手操作步骤错乱导致破解失败 鉴于是循环试用方式的破解,避免不了14天后在操作一次,为了方便我就写了一个破解工具三部曲 行业不景气,因为有缘我们相聚,成功靠大 阅读全文
posted @ 2022-11-22 17:39 CGRun 阅读(369) 评论(0) 推荐(0)
摘要:import maya.cmds as cmds cmds.lockNode('initialShadingGroup', lock=False, lu=False) cmds.lockNode('initialParticleSE', lock=False, lu=False) 阅读全文
posted @ 2022-10-12 11:23 CGRun 阅读(531) 评论(2) 推荐(1)
摘要:# encoding:utf-8 """ @Author: Meng @software: PyCharm @time: 2023/08/22 20:39 """ import maya.cmds as cmds import pymel.core as pm cmds.workspace(dire 阅读全文
posted @ 2022-08-26 00:27 CGRun 阅读(374) 评论(0) 推荐(0)
摘要:获取Maya persp窗口(PySide2) from PySide2 import QtGui,QtWidgets import shiboken2 from maya import cmds from maya import OpenMayaUI from maya.app.general i 阅读全文
posted @ 2022-08-01 18:35 CGRun 阅读(153) 评论(0) 推荐(0)
摘要:from maya.cmds import * from pymel.core import * #查询 def test(): renderlayers = cmds.ls(type="renderLayer") for layer in renderlayers: print layer #se 阅读全文
posted @ 2022-05-30 22:30 CGRun 阅读(893) 评论(0) 推荐(0)
摘要:import maya.cmds as cmds import maya.mel as mel import maya.OpenMaya as OpenMaya import maya.OpenMayaUI as OpenMayaUI #读取视窗 view = OpenMayaUI.M3dView. 阅读全文
posted @ 2022-05-30 16:55 CGRun 阅读(152) 评论(0) 推荐(0)
摘要:import maya.cmds as cmds def if_camera(*args) : modernCam=modelPanel("modelPanel4", q=1, cam=1) keyedCount = cmds.keyframe(modernCam, query=True, keyf 阅读全文
posted @ 2022-04-04 22:19 CGRun 阅读(89) 评论(0) 推荐(0)
摘要:from PySide2 import QtWidgets, QtCore from shiboken2 import wrapInstance import maya.OpenMayaUI as omUI import pymel.core as pm def dockable_window(wi 阅读全文
posted @ 2022-04-04 21:37 CGRun 阅读(179) 评论(0) 推荐(0)
摘要:import maya.cmds as cmds def getAttName(fullname): parts = fullname.split('.') return parts[-1] def copyKeyframes(): objs = cmds.ls(selection=True) if 阅读全文
posted @ 2022-04-04 21:35 CGRun 阅读(336) 评论(0) 推荐(0)
摘要:import maya.cmds as cmds word = cmds.xform('pSphere1',q=1,ws=1,rp=1) print word 阅读全文
posted @ 2022-04-04 21:33 CGRun 阅读(144) 评论(0) 推荐(0)
摘要:1 import maya.cmds as cmds 2 3 getAllNodes = cmds.ls(type="RedshiftProxyMesh")#redshift 4 #getAllNodes = cmds.ls(type="aiStandIn")#arnold 5 for node i 阅读全文
posted @ 2022-03-26 04:47 CGRun 阅读(88) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*- """ @Author: Meng @software: PyCharm @file: VRay渲染器渲染属性设置 @time: 2022/03/19 20:39 """ import maya.cmds as cmds mel.eval('unifi 阅读全文
posted @ 2022-03-19 00:24 CGRun 阅读(329) 评论(0) 推荐(0)
摘要:# encoding:utf-8 """ @Author: Meng @software: PyCharm @file: out_ch_bg.py @time: 2023/01/02 20:39 """ from maya.cmds import *; from pymel.core import 阅读全文
posted @ 2022-02-21 22:03 CGRun 阅读(62) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*- """ @Author: Meng @software: PyCharm @file: maya渲染器切换.py @time: 2021/10/28 20:49 """ import maya.mel as mel mel.eval('setCurre 阅读全文
posted @ 2022-02-21 21:54 CGRun 阅读(156) 评论(0) 推荐(0)
摘要:# C:/Users/xx/Documents/maya/2017 import os import maya.cmds as cmds MAYA_VERSION = cmds.about(version=True)[:4] path = os.environ['HOME']+"/maya/"+MA 阅读全文
posted @ 2022-02-21 21:28 CGRun
摘要:import pymel.all as pm refEdpanel = pm.MelGlobals.get("gReferenceEditorPanel") # 获取引用文件路径 #selRef = pm.sceneEditor(refEdpanel,q=1,selectItem=1) selRef 阅读全文
posted @ 2022-02-21 21:27 CGRun
摘要:功能演示: 加载方式: Python打开maya脚本编辑器把代码放在python栏加载,或全选鼠标中键保存到工具架上源码如下:↓ 1 # encoding:utf-8 2 """ 3 @Author: Meng 4 @software: PyCharm 5 @file: QualothDecide. 阅读全文
posted @ 2022-02-08 17:54 CGRun 阅读(466) 评论(0) 推荐(0)

1