Skip to content

Instantly share code, notes, and snippets.

View severn2's full-sized avatar
💭
☕️

severn2

💭
☕️
View GitHub Profile
@severn2
severn2 / bubble_sort.py
Created April 13, 2018 00:33
Bubble Sort
""" Bubble Sort """
import sys
import time
from random import randint
def iterate(items):
swapped = False
for i in range(len(items)-1):
@severn2
severn2 / mobu_model_remove.py
Last active September 29, 2017 21:33
Motionbuilder 2015 and 2017 have issues removing child objects when deleting from the UI. This deletes children by root model.
""" Remove models with confidence in MotionBuilder 2015 and 2017 """
# Built in
# Third Party
from pyfbsdk import FBSystem, FBFindModelByLabelName
from PySide.QtGui import (
QDialog,
QPushButton,
QListWidget,
QVBoxLayout,
@severn2
severn2 / combobox_w_checkbox.py
Created September 29, 2017 18:30
Creates a Pyside Combobox, but has a multi-selection checkbox on selection.
# Built in
from uuid import uuid4
# Third party
from PySide.QtCore import Qt
from PySide.QtGui import (
QComboBox,
QMainWindow,
QVBoxLayout,
QPushButton,
@severn2
severn2 / lower_limb_twist_rig.py
Last active September 29, 2017 18:32
Creates a twist rig on a lower limb of a character in Maya.
""" Creates a lower limb twist rig.
.. module:: rigging.lower_limb_twist_rig
:platform: Unix, Linux, Windows
.. moduleauthor:: wbondie
"""
# Built in
import logging
@severn2
severn2 / upper_limb_twist_rig.py
Last active September 29, 2017 18:33
Creates a upper limb twist rig on a character in Maya.
""" Creates a upper limb twist rig.
.. module:: rigging.upper_limb_twist_rig
:platform: Unix, Linux, Windows
.. moduleauthor:: wbondie
"""
# Built in
import logging
@severn2
severn2 / joint_labeler.py
Created October 1, 2016 16:55
Maya Joint Labeler
""" Script to apply joint labeling to existing joint layouts.
.. module:: naming.joint_labeler
:platform: Unix, Linux, Windows
..author:: wbondie
"""
# Built in
import logging