Skip to content

Instantly share code, notes, and snippets.

View splinecraft's full-sized avatar

Eric Luhta splinecraft

  • Vancouver, BC
View GitHub Profile
@dennis-tra
dennis-tra / DoubleSlider.py
Created January 20, 2017 10:46
PyQt - QSlider for float or double values + tests
from PyQt5.QtWidgets import QSlider
class DoubleSlider(QSlider):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.decimals = 5
self._max_int = 10 ** self.decimals
super().setMinimum(0)
import pymel.core as pmc
def fixupCyclicAnimLayers():
"""
This function finds animation layer nodes which are connected to themselves, disconnects them, and HOPEFULLY finds
the remaining unconnected animation curve, and plugs it back into the appropriate attribute.
:return: None
"""