Skip to content

Instantly share code, notes, and snippets.

View xtvjxk123456's full-sized avatar

xtvjxk xtvjxk123456

View GitHub Profile
@xtvjxk123456
xtvjxk123456 / qmlview.py
Created August 4, 2020 01:57 — forked from schuster-rainer/qmlview.py
QML viewer using PySide to display a qml or html embedding a qml
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
from PySide import QtCore, QtGui, QtDeclarative
import argparse
from PySide.QtWebKit import QWebPluginFactory, QWebView, QWebSettings
@xtvjxk123456
xtvjxk123456 / MImage_to_QImage.py
Created August 17, 2018 08:18 — forked from justinfx/MImage_to_QImage.py
Passing pixel pointer from a Maya MImage to Qt's QImage
"""
Simplified version of original forum post:
http://tech-artists.org/forum/showthread.php?4547-Passing-uchar-pointer-with-PySide-in-Maya
"""
import ctypes
import maya.OpenMaya as om
from PySide import QtCore, QtGui
# Build a test MImage