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.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) |
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 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 | |
""" |