Skip to content

Instantly share code, notes, and snippets.

View petfactory's full-sized avatar
💭
Testing Flask

Johan Borgström petfactory

💭
Testing Flask
View GitHub Profile
@SlyCodePanda
SlyCodePanda / rayCasting.py
Created January 15, 2020 05:27
Ray casting script in Maya using Python.
import maya.OpenMaya as om
import maya.cmds as cmds
def RayIntersect(mesh, point, direction):
# Clear selection.
cmds.select(cl=True)
# Select mesh.
om.MGlobal.selectByName(mesh)
@fredrikaverpil
fredrikaverpil / nuke_screengrab.py
Created October 26, 2016 06:25
Grab the viewer from Nuke
from PySide import QtGui
def grab_widget(widget=None, filepath=None):
"""This is a test and is not proofed for production
Note:
See QPixmap members being obsolete in Qt5:
http://doc.qt.io/qt-5/qpixmap-obsolete.html
"""