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
# standard libraries | |
import platform | |
import _winreg | |
def query(key, sub_key, path): | |
result = None | |
if platform.architecture()[0] == "32bit": | |
architecture_ = _winreg.KEY_READ | _winreg.KEY_WOW64_32KEY |
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
# standard libraries | |
import os | |
import sys | |
import json | |
import traceback | |
class JSONDict(dict): | |
def __init__(self, file_path, sort_keys=False, *args, **kwargs): | |
super(JSONDict, self).__init__(*args, **kwargs) |
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
""" | |
This is what you need to do in order to get a qt window to dock next to maya channel box, | |
In all maya versions, including 2017 with PySide2 | |
""" | |
__author__ = "[email protected]" | |
import sys | |
import os | |
import logging | |
import xml.etree.ElementTree as xml |
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 pymel.core as pm | |
selection = pm.ls(sl=True) | |
for index, node in enumerate(selection): | |
position = None | |
if isinstance(node, pm.Component): | |
if isinstance(node, pm.MeshVertex): |
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
# standard libraries | |
import os | |
import sys | |
import subprocess | |
__author__ = "Michael Trainor (http://www.mtrainor.com)" | |
__gist__ = "[email protected]:f2a849dd0051d35bc2ba.git" | |
# usage | |
""" python.exe delete_all.py {your_path} """ |
NewerOlder