Skip to content

Instantly share code, notes, and snippets.

View JanPhKoch's full-sized avatar

Jan-Philipp Koch JanPhKoch

View GitHub Profile
@JanPhKoch
JanPhKoch / printListOfSubclassesAndTheirDocstrings.py
Last active October 23, 2020 14:03
Print list of subclasses and their docstrings
def buildObjectAndDocstring(pobject):
import inspect
objectListWithDocStrings = pobject.__name__ + ': ' + inspect.getdoc(pobject)
return objectListWithDocStrings
###################################################
############ test classes below ###################
class CheckBaseClass(object):pass
@JanPhKoch
JanPhKoch / maya_kill_unknown_referencenodes.py
Last active March 21, 2024 04:14
Finds and deletes all unknown references within the maya scene.
import maya.cmds as cmds
def check_unknown_refs():
"""
Checks unknown references.
:return: unknown_references: list of all unknown references within the scene.
"""