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
{ | |
"alexcvzz.vscode-sqlite": 1, | |
"andyyaldoo.vscode-json": 1, | |
"batisteo.vscode-django": 1, | |
"chrmarti.regex": 1, | |
"DavidAnson.vscode-markdownlint": 1, | |
"donjayamanne.jupyter": 1, | |
"donjayamanne.python-extension-pack": 1, | |
"DotJoshJohnson.xml": 1, | |
"GrapeCity.gc-excelviewer": 1, |
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
# Save a Houdini Digital Asset through tool shelf button | |
def saveHDA(hdaName_to_save): | |
'Save a particular HDA.' | |
# Get all instances of HDA | |
for node in hou.node("/obj").children(): | |
hdaName = node.type().definition().nodeTypeName() | |
if hdaName_to_save in hdaName and (not node.isLocked()): | |
node.type().definition().updateFromNode(node) | |
saveHDA("HDA_NAME_TO_SAVE") |
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
# List of custom HDAs from Houdini asset manager. | |
def findLoadedHDAs(): | |
''' | |
Returns a list of loaded HDAs in Houdini scene. | |
HDAs installed by default with Houdini are skipped. | |
''' | |
loadedHDAs = [] | |
# Scan all node categories | |
for category in hou.nodeTypeCategories().values(): | |
# Scan all node types |
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
# Launch explorer at location of and with given file selected. | |
import subprocess | |
subprocess.Popen("explorer /select," + "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
provinces_list = ['central', 'east_test', 'central_collection', 'west_gameplay'] | |
list_keys = ('region', 'test', 'collection') | |
provinces_list = [p for p in provinces_list if not any(l in p.lower() for l in list_keys)] |