Skip to content

Instantly share code, notes, and snippets.

View TravisEvashkevich's full-sized avatar
💭
I may be slow to respond.

Travis Evashkevich TravisEvashkevich

💭
I may be slow to respond.
View GitHub Profile
@BigRoy
BigRoy / maya_get_all_zero_normals.py
Last active January 20, 2023 15:01
In maya get all zero or near zero face vertex normals of a mesh using Python
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)
@BigRoy
BigRoy / substancepainter_stylesheet.css
Created January 6, 2023 01:39
Substance Painter 8.2.0 QtWidgets.QApplication.instance().styleSheet()
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;}
# python
import lx
from P4 import P4
from P4 import Progress
from P4 import P4Exception
@JonathonReinhart
JonathonReinhart / pipe_client.py
Last active May 23, 2023 23:44
Named Pipes between C# and Python
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