Skip to content

Instantly share code, notes, and snippets.

@jamiephan
jamiephan / README.md
Last active March 18, 2026 11:55
A script to automatically add ALL items to your account in quixel

Script to add all items from quixel

As quixel is being removed, all items are free to aquire. This script is to automate the process to add items to your account (As of writing, a total of 18874 items)

Note: This script only tested in the latest version of Chrome.

How to use

  1. Copy the script from below (run.js)
  2. Login into https://quixel.com
@Lauloque
Lauloque / maya_save_icon.py
Created July 7, 2023 16:55
Maya saves any icon you want
from pymel.core import *
import os
import maya.api.OpenMaya as om
def main():
###### USER CUSTOMIZATION ######
ICONS_ITEMS = "play_regularrrrr.png"
OUTPUT_DIRECTORY = "C:/temp/icons/"
# Don't forget the closing slash!
###### ###### ###### ######
@cerina
cerina / maya_pyside2_dockable_ui.py
Last active July 5, 2025 09:08
Maya: PySide2 - Dockable UI using MayaQWidgetDockableMixin
from shiboken2 import wrapInstance
from PySide2 import QtCore, QtWidgets
import maya.cmds as cmds
from maya import OpenMayaUI
from maya.app.general.mayaMixin import MayaQWidgetDockableMixin
def get_maya_win():
win_ptr = OpenMayaUI.MQtUtil.mainWindow()
return wrapInstance(long(win_ptr), QtWidgets.QMainWindow)
from shiboken2 import wrapInstance
from PySide2 import QtGui, QtCore, QtUiTools, QtWidgets
import maya.OpenMayaUI as omui
from maya.app.general.mayaMixin import MayaQWidgetDockableMixin
def maya_main_window():
"""
This function gets the pointer to the Maya's Main window.
Our window will be parented under this.
@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)
@mottosso
mottosso / Dock.py
Last active October 13, 2023 09:01 — forked from liorbenhorin/Simple_MayaDockingClass.py
Simple way to dock Qt widgets to Maya 2017+
from maya import cmds, OpenMayaUI as omui
from Qt import QtWidgets, QtCore, QtCompat
def Dock(Widget, width=300, show=True):
"""Dock `Widget` into Maya
Arguments:
Widget (QWidget): Class
show (bool, optional): Whether to show the resulting dock once created
@mottosso
mottosso / MayaDockingClass.py
Created January 12, 2018 07:16 — forked from liorbenhorin/MayaDockingClass.py
Maya 2017 PySide2 Docking Qt QMainWindow
"""
This is what you need to do in order to get a qt window to dock next to maya channel box,
In all maya versions, including 2017 with PySide2
"""
__author__ = "liorbenhorin@gmail.com"
import sys
import os
import logging
import xml.etree.ElementTree as xml
@liorbenhorin
liorbenhorin / MayaDockingClass.py
Last active October 3, 2023 13:01
Maya 2017 PySide2 Docking Qt QMainWindow
"""
This is what you need to do in order to get a qt window to dock next to maya channel box,
In all maya versions, including 2017 with PySide2
"""
__author__ = "liorbenhorin@gmail.com"
import sys
import os
import logging
import xml.etree.ElementTree as xml
@nrtkbb
nrtkbb / compile.sh
Last active August 16, 2024 12:38
Hello Cython in Maya
# Install pip
# $ curl -kL https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python
#
# Install Cython
# $ pip install cython
#
# compile command
python setup.py build_ext --inplace
@yamahigashi
yamahigashi / check_maximum_influence.py
Created June 30, 2015 09:17
check max influence and select these vertex. for Maya
import maya.cmds as cmds
import maya.mel as mel
DEFAULT_MAXIMUM_INFULENCE = 5
##############################################################################
#1頂点に影響するジョイントの上限チェックする
##############################################################################
def check_maximum_influence(max=DEFAULT_MAXIMUM_INFULENCE):
res = []