This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hou | |
import os.path | |
def loadHdaLibrary(libPath): | |
""" | |
Loads all the HDA files in a folder | |
@param libPath: HDA library file path | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hou | |
if hou.selectedNodes(): | |
nd = hou.selectedNodes()[0] | |
else: | |
nd = hou.node("/") | |
nodeArr = nd.allSubChildren() | |
for n in nodeArr: | |
if not n.isInsideLockedHDA(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |