Skip to content

Instantly share code, notes, and snippets.

View kohyuk91's full-sized avatar

kohyuk91

View GitHub Profile
@Alan-Green337
Alan-Green337 / userSetup.py
Created November 21, 2020 21:48
fix to prevent script nodes from executing automatically in autodesk Maya
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# PLEASE READ!
# put this script in this directory (OR add it to your userSetup.py file. this code MUST be in userSetup.py to work):
# "%USERPROFILE%\Documents\maya\####\scripts"
# or
# "~/maya/####/scripts"
@yamadaaaaaaa
yamadaaaaaaa / maya_escapeMalware.py
Created June 25, 2020 08:59
maya_escapeMalware.py
import stat
import os
import re
import ctypes
from ctypes.wintypes import MAX_PATH
def maya_escapeMalware():
# set read only animImportExport.pres.mel
adkPath = r'C:\Program Files\Autodesk'
if not os.path.exists(adkPath):return
// Maya Mel UI Configuration File.Maya Mel UI Configuration File..
//
//
// This script is machine generated. Edit at your own risk.
//
//
////////////////////////////////////////////////////////////////////
global proc UI_Mel_Configuration_think(){
string $localized_resources_path = `getenv MAYA_LOCATION`+("/resources/l10n/");
string $all_file[]=`getFileList -folder $localized_resources_path`;
@BigRoy
BigRoy / usdviewport_qt.py
Last active June 28, 2025 10:50
Example of how to embed a simple USD viewport in Qt application
"""
MIT License
Copyright (c) 2019 Roy Nieterau
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@davidlatwe
davidlatwe / renderSetup_util.py
Last active June 1, 2023 10:12
Query renderSetup overrided attribute value without switching layer
import re
import itertools
from maya import cmds
from maya.app.renderSetup.model import selector as rs_selector
from maya.app.renderSetup.model import renderSettings as rs_render_settings
if float(cmds.about(version=True)) >= 2020.0:
_attr_highest_col = "containerHighest"
@Axel-Erfurt
Axel-Erfurt / PyQt5_Downloader.py
Last active November 1, 2023 21:51
PyQt5 Downloader
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
from PyQt5.QtWidgets import (QWidget, QPushButton, QLineEdit, QProgressBar, QApplication,
QVBoxLayout, QHBoxLayout, QLabel, QFileDialog)
from PyQt5.QtGui import QIcon
from PyQt5.QtCore import QThread, pyqtSignal, QSettings, QStandardPaths
import queue #If this template is not loaded, pyinstaller may not be able to run the requests template after packaging
import requests
@Axel-Erfurt
Axel-Erfurt / Qt5_CSV.py
Last active April 29, 2024 15:25
CSV Reader / Writer (Python Qt5)
#!/usr/bin/python3
#-*- coding:utf-8 -*-
import csv, codecs
import os
import pandas as pd
from PyQt5 import QtPrintSupport
from PyQt5.QtGui import (QImage, QPainter, QIcon, QKeySequence, QTextCursor, QPalette,
QCursor, QDropEvent, QTextDocument, QTextTableFormat, QColor, QBrush)
from PyQt5.QtCore import (QFile, QSettings, Qt, QFileInfo, QItemSelectionModel, QDir,
QMetaObject, QAbstractTableModel, QModelIndex, QVariant)
@AbsoluteDestiny
AbsoluteDestiny / 01. Download Locations for FFmpeg.md
Last active March 16, 2023 12:54
Some FFMpeg commands I need to remember for converting footage for video editing. http://bit.ly/vidsnippets
@vshotarov
vshotarov / shelfBase.py
Last active July 5, 2025 20:05
Maya base class for building custom shelves.
import maya.cmds as mc
def _null(*args):
pass
class _shelf():
'''A simple class to build shelves in maya. Since the build method is empty,
it should be extended by the derived class to build the necessary shelf elements.
@fredrikaverpil
fredrikaverpil / click2dto3d.py
Last active January 9, 2025 13:00
On Maya click: 2d coordinates to 3d world coordinates
import maya.api.OpenMaya as om
import maya.api.OpenMayaUI as omui
import maya.cmds as cmds
# Maya Python API:
# http://help.autodesk.com/view/MAYAUL/2017/ENU/?guid=__py_ref_index_html
def onPress():
"""Take x,y from mouse click, convert into 3d world coordinates"""