This file contains hidden or 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
from maya.OpenMaya import MFn | |
from maya.OpenMaya import MDagPath | |
from maya.OpenMaya import MSelectionList | |
from maya.OpenMaya import MGlobal | |
from maya.OpenMaya import MFnCamera | |
from maya.OpenMayaUI import MDrawTraversal | |
import pymel.core as pm | |
from maya import cmds | |
import math |
This file contains hidden or 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 -*- | |
import sys | |
from PySide import QtCore, QtGui | |
class Ui_Window_scroll(object): | |
def setupUi(self, Window_scroll): | |
Window_scroll.setObjectName("Window_scroll") | |
self.centralwidget = QtGui.QWidget(Window_scroll) | |
self.centralwidget.setObjectName("centralwidget") | |
self.gridLayout = QtGui.QGridLayout(self.centralwidget) |
This file contains hidden or 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
global proc qube_addUI_maya() | |
{ | |
global string $gQubeMenu; | |
global string $gQube_cmdTemplate; | |
setParent -menu $gQubeMenu; | |
string $mayaver = `about -v`; | |
string $envSet; | |
if( `gmatch $mayaver "2016*"` == 1) | |
{ | |
$envSet = "'env':{'MAYA_PLUG_IN_PATH': 'C:/plugin'}"; |
This file contains hidden or 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
timeControl -e -pc "undoInfo -swf 0; timeControl -e -beginScrub $gPlayBackSlider" -rc "timeControl -e -endScrub $gPlayBackSlider; undoInfo -swf 1" $gPlayBackSlider; | |
// C:/Program Files/Autodesk/Maya<ver>/scripts/others/timeSlider.mel | |
// | |
//timeControl -e -pc "timeControl -e -beginScrub $gPlayBackSlider" -rc "timeControl -e -endScrub $gPlayBackSlider" $gPlayBackSlider; | |
// -> change | |
//timeControl -e -pc "undoInfo -swf 0; timeControl -e -beginScrub $gPlayBackSlider" -rc "timeControl -e -endScrub $gPlayBackSlider; undoInfo -swf 1" $gPlayBackSlider; |
This file contains hidden or 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 -*- | |
import sys | |
from PySide import QtCore, QtGui | |
class Ui_testGUI(object): | |
def setupUi(self, testGUI): | |
testGUI.setObjectName("testGUI") | |
testGUI.resize(310, 295) | |
testGUI.setStyleSheet("background-color: rgb(50, 50, 100);\n" | |
"color: rgb(255, 255, 255);") |
This file contains hidden or 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 -*- | |
import sys | |
import keyboard | |
from PySide import QtCore, QtGui | |
class Ui_testGUI(object): | |
def setupUi(self, testGUI): | |
testGUI.setObjectName("testGUI") | |
testGUI.resize(310, 295) | |
testGUI.setStyleSheet("background-color: rgb(50, 50, 100);\n" |
This file contains hidden or 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 -*- | |
from pywinauto import application | |
import time | |
import os | |
import sys | |
rvRoot = r"C:\Program Files\Shotgun" | |
for files in os.listdir(rvRoot): | |
if os.path.isdir(os.path.join(rvRoot,files)) and files[:2] == "RV": |
This file contains hidden or 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 hou | |
import re | |
_node = hou.node('/obj/geo1/') | |
# 選択ノード指定でやりたいときはこっち | |
''' | |
_nodes = hou.selectedNodes() | |
if len(_nodes) != 0: | |
_node = oNodes[0] | |
''' | |
# 指定ノード以下の子を処理 |
This file contains hidden or 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 -*- | |
# python for maya | |
import maya.cmds as cmds ##cmd | |
import maya.mel as mel ##mel | |
def main(): | |
mel.eval('panelEditor("Layout");') | |
layoutList = cmds.textScrollList( 'PanelEditorPanelsScrollList', q = 1, allItems = 1 ) | |
defPanelList = [u'Top View', u'Side View', u'Front View', u'Persp View', u'Outliner', \ | |
u'Graph Editor', u'Dope Sheet', u'Trax Editor', u'Camera Sequencer', \ |
This file contains hidden or 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 -*- | |
import shotgun_api3 | |
sg = shotgun_api3.Shotgun('https://test.shotgunstudio.com', script_name='test_tool', api_key='0a1b2c3d4e5f9g7h8i9j') | |
# 適宜ここに処理を書く | |
sg.close() |
OlderNewer