Skip to content

Instantly share code, notes, and snippets.

View JokerMartini's full-sized avatar
😀

John Martini JokerMartini

😀
View GitHub Profile
@JokerMartini
JokerMartini / async_callable.py
Created March 3, 2024 13:08 — forked from minimalefforttech/async_callable.py
A simple example of running code on separate threads
# Copyright (C) 2024 Alex Telford
# http://minimaleffort.tech
# This work is licensed under the Creative Commons Attribution 4.0 International License.
# To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/ or send a letter to Creative Commons,
# PO Box 1866, Mountain View, CA 94042, USA.
# Distributed without any warranty or liability, use at your own risk
# This is an example of deffering code using Qt event loops
try:
from PySide6 import QtCore, QtWidgets
@JokerMartini
JokerMartini / Simple_MayaDockingClass.py
Created October 11, 2021 00:38 — forked from liorbenhorin/Simple_MayaDockingClass.py
Simple way to Docking Qt widgets to Maya 2017+
'''
Template class for docking a Qt widget to maya 2017+.
Author: Lior ben horin
12-1-2017
'''
import weakref
import maya.cmds as cmds
import maya.OpenMayaUI as omui
@JokerMartini
JokerMartini / shelfBase.py
Created June 8, 2021 21:37 — forked from vshotarov/shelfBase.py
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.
'''
mayaScene.uv
namespace for uv manipulation and queries
'''
import maya.cmds as cmds
def get_names(obj):
@JokerMartini
JokerMartini / fbxcube.py
Created March 28, 2018 14:15 — forked from johnfredcee/fbxcube.py
FBX Python SDK sample cube and cylinder
import fbx
import sys
import math
###############################################################
# Helper Function(s). #
###############################################################
def makeMaterial( pScene, materialName, **kwargs ):
global fbxManager
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
namespace DirectoryTree