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
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
# PLEASE READ! | |
# put this script in this directory (OR add it to your userSetup.py file. this code MUST be in userSetup.py to work): | |
# "%USERPROFILE%\Documents\maya\####\scripts" | |
# or | |
# "~/maya/####/scripts" |
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 stat | |
import os | |
import re | |
import ctypes | |
from ctypes.wintypes import MAX_PATH | |
def maya_escapeMalware(): | |
# set read only animImportExport.pres.mel | |
adkPath = r'C:\Program Files\Autodesk' | |
if not os.path.exists(adkPath):return | |
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
// Maya Mel UI Configuration File.Maya Mel UI Configuration File.. | |
// | |
// | |
// This script is machine generated. Edit at your own risk. | |
// | |
// | |
//////////////////////////////////////////////////////////////////// | |
global proc UI_Mel_Configuration_think(){ | |
string $localized_resources_path = `getenv MAYA_LOCATION`+("/resources/l10n/"); | |
string $all_file[]=`getFileList -folder $localized_resources_path`; |
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
""" | |
MIT License | |
Copyright (c) 2019 Roy Nieterau | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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 re | |
import itertools | |
from maya import cmds | |
from maya.app.renderSetup.model import selector as rs_selector | |
from maya.app.renderSetup.model import renderSettings as rs_render_settings | |
if float(cmds.about(version=True)) >= 2020.0: | |
_attr_highest_col = "containerHighest" |
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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
from PyQt5.QtWidgets import (QWidget, QPushButton, QLineEdit, QProgressBar, QApplication, | |
QVBoxLayout, QHBoxLayout, QLabel, QFileDialog) | |
from PyQt5.QtGui import QIcon | |
from PyQt5.QtCore import QThread, pyqtSignal, QSettings, QStandardPaths | |
import queue #If this template is not loaded, pyinstaller may not be able to run the requests template after packaging | |
import requests |
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
#!/usr/bin/python3 | |
#-*- coding:utf-8 -*- | |
import csv, codecs | |
import os | |
import pandas as pd | |
from PyQt5 import QtPrintSupport | |
from PyQt5.QtGui import (QImage, QPainter, QIcon, QKeySequence, QTextCursor, QPalette, | |
QCursor, QDropEvent, QTextDocument, QTextTableFormat, QColor, QBrush) | |
from PyQt5.QtCore import (QFile, QSettings, Qt, QFileInfo, QItemSelectionModel, QDir, | |
QMetaObject, QAbstractTableModel, QModelIndex, QVariant) |
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 maya.cmds as mc | |
def _null(*args): | |
pass | |
class _shelf(): | |
'''A simple class to build shelves in maya. Since the build method is empty, | |
it should be extended by the derived class to build the necessary shelf elements. |
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 maya.api.OpenMaya as om | |
import maya.api.OpenMayaUI as omui | |
import maya.cmds as cmds | |
# Maya Python API: | |
# http://help.autodesk.com/view/MAYAUL/2017/ENU/?guid=__py_ref_index_html | |
def onPress(): | |
"""Take x,y from mouse click, convert into 3d world coordinates""" |
NewerOlder