Skip to content

Instantly share code, notes, and snippets.

@chris-gardner
chris-gardner / houdini_otl_hotload.py
Created Sep 11, 2020
Load houdini otls / hdas on the fly
View houdini_otl_hotload.py
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
Filters static keyframes in Houdini
View filterStaticKeys.py
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 Mar 25, 2022
Houdini python script for versioning otls/hda
View version_hda.py
"""
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