![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
virgiI
这个作者很懒,什么都没留下…
展开
-
alembicTool_shaderEdit
import maya.cmds as cmdsdef getObjectShader(object_name): transform = cmds.ls(object_name,typ = 'transform') shapes = list() if transform: shapes = cmds.listRelatives(transform,shap原创 2016-03-23 11:45:31 · 528 阅读 · 0 评论 -
alembicTool_assemblyInfo
import reimport maya.OpenMaya as OpenMayaimport bplatform.pathdef getAssemblyRepresentationsInfo(name): sel = OpenMaya.MSelectionList() object = OpenMaya.MObject() try: sel.add(na原创 2016-03-23 11:47:46 · 568 阅读 · 0 评论 -
alembicTool_transformInfo
import maya.OpenMaya as OpenMayadef getTransformationMatrix(name): sel = OpenMaya.MSelectionList() object = OpenMaya.MObject() try: sel.add(name) sel.getDependNode(0,object)原创 2016-03-23 11:49:59 · 382 阅读 · 0 评论 -
foregroundRender_render
# -*- coding: utf-8 -*-# ***************************************## Author: Xinghai Zhao# Created on: 2016.2.4 16:55:58## ***************************************'''1.0.0:render: use foregroundR原创 2016-03-23 13:48:59 · 917 阅读 · 0 评论 -
foregroundRender_seceneRender
# -*- coding: utf-8 -*-# ***************************************## Author: Xinghai Zhao# Created on: 2016.2.4 16:55:58## ***************************************'''render: use foregroundRender a原创 2016-03-23 13:51:10 · 460 阅读 · 0 评论 -
alembicTool_alembicExport
import os,sys,logging,reimport cPickle as pickleimport bplatform.pathimport bplatform.userimport bpipeline.contextimport brender.render_utilityimport brender.qube_submitimport maya.OpenMaya as Ope原创 2016-03-23 11:38:51 · 946 阅读 · 0 评论 -
alembicTool_lsObject
import reimport maya.OpenMaya as OpenMayaimport maya.cmds as cmdsdef toMObject(*objects): sel = OpenMaya.MSelectionList() for i in objects: sel.add(i) out = list() for i in xra原创 2016-03-23 11:36:49 · 411 阅读 · 0 评论 -
cameraEdit_getCameraLimt
import maya.cmds as cmdsimport meshEditreload(meshEdit)import AlembicTooldef getCmeraLimtObjects(camera,objects = None,distance = 10000,offset = 0): if not objects: objects = [i for i in原创 2016-03-23 11:30:27 · 342 阅读 · 0 评论 -
cameraEdit_meshEdit
import maya.OpenMaya as OpenMayaimport maya.cmds as cmdsdef getCameraLimit(cameraName,distance = 10000,offset = 0): sel = OpenMaya.MSelectionList() sel.add(cameraName) camera_obj = OpenMay原创 2016-03-23 11:27:52 · 481 阅读 · 0 评论 -
设置QTabWidget标题页纵向文字横向排列的写法
设置QTabWidget标题页纵向文字横向排列的写法 “` from PyQt4 import QtGui, QtCoreclass HorizontalTabWidget(QtGui.QTabBar): def paintEvent(self, event): for index in range(self.count()): painter =原创 2017-04-18 13:18:05 · 10096 阅读 · 3 评论