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.api.OpenMaya as om | |
from maya import cmds | |
def get_dag_path(name): | |
"""Return MDagPath from object name""" | |
sel = om.MSelectionList() | |
sel.add(name) | |
return sel.getDagPath(0) |
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
QWidget { font-size: 11px; background-color: #333333; color: #cccccc;} | |
QWidget:disabled { color: #666666;} | |
QFrame, QDialog, QWindow { background: #333333;} | |
QFrame { border: none;} | |
QFrame[indentBorder=true] { margin-left: 2px; border-color: transparent; border-style: solid; border-left-width: 2px; padding: 4px 0px 4px 8px;} | |
QToolTip { color: #cccccc; background-color: #333333; padding: 4px; border: 1px solid #666666;} | |
QLabel { background: transparent;} | |
QLabel[messageHovered="true"] { text-decoration: underline;} | |
QLabel[messageType="warning"] { color: #ffb91a;} | |
QLabel[messageType="error"] { color: #ef4e35;} |
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
# python | |
import lx | |
from P4 import P4 | |
from P4 import Progress | |
from P4 import P4Exception | |
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 time | |
import struct | |
f = open(r'\\.\pipe\NPtest', 'r+b', 0) | |
i = 1 | |
while True: | |
s = 'Message[{0}]'.format(i).encode('ascii') | |
i += 1 | |