Skip to content

Instantly share code, notes, and snippets.

@chris-gardner
chris-gardner / houdini_otl_hotload.py
Created September 11, 2020 01:58
Load houdini otls / hdas on the fly
import hou
import os.path
def loadHdaLibrary(libPath):
"""
Loads all the HDA files in a folder
@param libPath: HDA library file path
"""
@chris-gardner
chris-gardner / filterStaticKeys.py
Last active May 1, 2020 16:16
Filters static keyframes in Houdini
import hou
if hou.selectedNodes():
nd = hou.selectedNodes()[0]
else:
nd = hou.node("/")
nodeArr = nd.allSubChildren()
for n in nodeArr:
if not n.isInsideLockedHDA():
@chris-gardner
chris-gardner / version_hda.py
Last active March 25, 2022 20:17
Houdini python script for versioning otls/hda
"""
Increments the version of a hda/otl
If no version information is in the filename / definition, it will be added
eg:
myAwesomeThing.hda --> myAwesomeThing__1.0.hda (definition is myAwesomeThing::1.0)
namespaces are respected
blah::myAwesomeThing::1.0 --> blah::myAwesomeThing::1.1