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 python2 | |
import os | |
import sys | |
import re | |
from PyQt4 import QtGui, QtCore | |
from PyQt4.QtCore import Qt, QString | |
class CommandWidget(QtGui.QDialog): |
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
def startDrag(self, supportedActions): | |
print('start drag') | |
listsQModelIndex = self.selectedIndexes() | |
if listsQModelIndex: | |
# dataQMimeData = self.model().mimeData(listsQModelIndex) | |
# insert fake x-maya-data | |
dataQMimeData = QtCore.QMimeData() | |
encoded = QtCore.QByteArray() | |
# failed attempt to cheat maya |
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
from PySide2 import QtWidgets, QtGui, QtCore | |
class Window(QtWidgets.QWidget): | |
def __init__(self, *args): | |
QtWidgets.QWidget.__init__(self, *args) | |
layout = QtWidgets.QVBoxLayout(self) | |
label= QtWidgets.QLabel('drop here') | |
label.setAlignment(QtCore.Qt.AlignCenter) | |
layout.addWidget(label) | |
self.setLayout(layout) |
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
chd: | |
disable: [ seen, seen_info_hash, retry_failed, history ] | |
html_rss: | |
url: xxx | |
cookie: xxx | |
params: '&passkey=xxx' | |
root_element_selector: 'table.torrents > tbody > tr:not(:first-child)' | |
fields: | |
title: |
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
from PyQt4 import QtGui, QtCore | |
from PyQt4.QtCore import Qt, QString | |
import sys | |
import os | |
class ThumbListWidget(QtGui.QListWidget): | |
_rows_to_del = [] |
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
--- | |
version: "3.8" | |
x-env-vars: &env-vars | |
PUID: 1000 | |
PGID: 1000 | |
TZ: Asia/Shanghai | |
UMASK: 002 | |
x-common-settings: &common-settings |
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 re | |
import maya.cmds as mc | |
import maya.mel as mel | |
def get_optionvar(var, type='iv'): | |
pref_file = mc.internalVar(userPrefDir=1)+'userPrefs.mel' | |
values = [] | |
with open(pref_file) as f: | |
for line in f.readlines(): |
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 | |
import maya.utils as mutils | |
def AEaddModelPanelModule( plug, uiLabel, annot): | |
paneLayoutName = cmds.paneLayout(h=300) | |
modelPanel = "customModelPanel" | |
if cmds.modelPanel(modelPanel, q=1, ex=1): | |
cmds.modelPanel(modelPanel, e=1, p=paneLayoutName) | |
else: |
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
# You can put this inside your userSetup.py | |
# import maya.utils as mu | |
# import script_editor_font as SE | |
# mu.executeDeferred(SE.launchFromCmdWndIcon) | |
from PyQt4 import QtGui, QtCore | |
from maya import cmds, mel | |
import maya.OpenMayaUI as apiUI | |
import sip |
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Crosstool-NG Configuration | |
# | |
CT_CONFIGURE_has_xz=y | |
CT_CONFIGURE_has_svn=y | |
CT_MODULES=y | |
# | |
# Paths and misc options |