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
# cd to folder in Terminal, then run script using python. | |
import os | |
def createFolder(folder): | |
try: | |
if not os.path.exists(folder): | |
os.makedirs(folder) | |
except OSError: | |
print ('Error creating folder: ' + folder) |
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
# cd to folder in Terminal, then run script. | |
import os | |
def createFolder(folder): | |
try: | |
if not os.path.exists(folder): | |
os.makedirs(folder) | |
except OSError: | |
print ('Error creating folder: ' + folder) |
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 os | |
def createFolder(folder): | |
try: | |
if not os.path.exists(folder): | |
os.makedirs(folder) | |
except OSError: | |
print('Error creating folder: ' + folder) | |
createFolder('My New Folder') |
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
#!/usr/bin/env python3 | |
# Command Line Usage: python3 ae-total-render-time.py /path/to/AERenderLogsFolder/ | |
# Title: ae-total-render-time.py | |
# Description: Calculate the Total Render Time of your completed After Effects renders. | |
# Author: gfxhacks.com | |
# More Info: https://gfxhacks.com/ae-render-logs-total-render-time | |
import os |
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 | |
# get node (find the path in your node's info panel) | |
n = hou.node("/path/to/node") | |
# get existing list of parameters for the specified node | |
g = n.parmTemplateGroup() | |
# define folders and parameters | |
f = [ |
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
# define new folder | |
f = hou.FolderParmTemplate("myFolder", "My Folder") | |
# define new simple folder (no tab) | |
f = hou.FolderParmTemplate("myFolder", "My Folder", folder_type=hou.folderType.Simple) | |
# add parameter at bottom of folder | |
f.addParmTemplate(p) | |
# remove item from folder (same as for group) |
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
# float | |
p = hou.FloatParmTemplate("float1", "Float 1", 1) | |
# button | |
p = hou.ButtonParmTemplate( | |
"btn1", | |
"Button 1", | |
script_callback='print("Hello World!")', | |
script_callback_language=hou.scriptLanguage.Python | |
), |
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
# get node (find the path in your node's info panel) | |
n = hou.node("/path/to/node") | |
# get existing list of parameters for the specified node | |
g = n.parmTemplateGroup() | |
# define new float parameter ("id", "Label", components/input fields, default values) | |
p = hou.FloatParmTemplate("myParm", "My Parameter", 3, default_value=[1, 1, 1]) | |
# append the new parameter to the list |
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
# edit a parameter using replace | |
oldParm = "oldParmId" | |
newParm = hou.FloatParmTemplate("newParmId", "NewParmLabel", 3, default_value=[1, 1, 1]) | |
g.replace(oldParm, newParm) | |
# if you defined a parameter earlier | |
g.remove(p) | |
# ...otherwise remove by id - useful to remove existing parameters |
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
#!/bin/bash | |
#Cmd Usage: sh metaDateRenamer.sh file.ext kMDItemName | |
# Title: metaDateRenamer.sh | |
# Desc: Rename a file from a specified date metadata value. | |
# Author: gfxhacks.com | |
# More Info: https://gfxhacks.com/renaming-files-by-date-from-metadata | |
# kMDItem DATE descriptor options: | |
# Common Metadata Attributes: | |
# kMDItemContentCreationDate |
OlderNewer