This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
try: | |
from PySide2.QtCore import * | |
from PySide2.QtGui import * | |
from PySide2.QtWidgets import * | |
except: | |
from PySide.QtCore import * | |
from PySide.QtGui import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
#コーディング: utf-8 | |
#------------------------------------------------------------------------------ | |
import struct | |
import sys | |
import re | |
import os | |
#------------------------------------------------------------------------------ | |
""" | |
import analyzeMayaVersion;reload(analyzeMayaVersion) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pymel.core as pm | |
import maya.mel | |
testWim=pm.window() | |
pm.columnLayout(adjustableColumn=True) | |
pm.button(l="align",c="maya.mel.eval('alignUV maxV;')") | |
pm.showWindow(testWim) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//進む | |
currentTime -e (`currentTime -q`+10); | |
//戻る | |
currentTime -e (`currentTime -q`-10); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ランタイムコマンド上書き | |
/* | |
source "pencilPorySmoothRender_command.mel" | |
*/ | |
global proc RenderIntoNewWindow() | |
{ | |
python("import pencilPorySmoothRender_command as pPSR_command;reload(pPSR_command)"); | |
python("pPSR_command.runtimePencilRender()"); | |
} | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
#コーディング: utf-8 | |
#------------------------------------------------------------------------------ | |
import maya.cmds as cmds | |
#------------------------------------------------------------------------------ | |
checkAttr={"castsShadows":1 | |
,"receiveShadows":1 | |
#,"holdOut":0 #Maya2017~ | |
,"motionBlur":1 | |
,"primaryVisibility":1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
#コーディング: utf-8 | |
#------------------------------------------------------------------------------ | |
import maya.cmds as cmds | |
#------------------------------------------------------------------------------ | |
def testJob(): | |
print cmds.listRelatives(cmds.ls(sl=True),shapes=True) | |
def main(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ファイル名に (<数字>) がついてしまったものを元に戻す。 | |
#オリジナルが存在したら複製は消す。 | |
#日付は見ていないので注意 | |
import os | |
import re | |
def find_all_files(directory): | |
for root, dirs, files in os.walk(directory): | |
yield root | |
for file in files: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import maya.cmds as cmds | |
def convCreaseSet(): | |
creaseDict={} | |
for _mesh in cmds.ls(type="mesh"): | |
for _edge in cmds.ls("%s.e[*]" % _mesh,fl=True): | |
_value=cmds.polyCrease(_edge,q=True,v=True) | |
creaseDict.setdefault(_value[0],[]).append(_edge) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
#コーディング: utf-8 | |
#------------------------------------------------------------------------------ | |
from Qt.QtWidgets import * | |
from Qt.QtGui import * | |
from Qt.QtCore import * | |
import maya.OpenMayaUI as OpenMayaUI | |
try : |