Recently Updated Pages
TOPs - symlink output file of parent
exportFile = str(work_item.expectedInputFiles[0]) dir = os.path.dirname(exportFile) newFile ...
Send nodes to new alembic export
import hou nodes = hou.selectedNodes() destnode = hou.node("/obj/EXPORT") if not destnode: ...
Send selected nodes to new object (fancy way to create object merges)
import hou nodes = hou.selectedNodes() destnode = hou.node(hou.ui.selectNode(title="select dest...
Create Agent from built in mocap rig - Simple
This will take a test mocap rig 3 built in to houdini, create an agent, add agent clips from the ...
Get Frame Size of Image File
node= hou.pwd(); bg=node.parm("image").eval(); res=hou.imageResolution(bg); node.parm("framesizex...
OnCreated scripts
OnCreated Script to set name, color, shape of node: cachename = hou.ui.readInput("Enter cache na...
PythonModule Scripts
Get houdini version: hver = hou.applicationVersionString().rpartition('.')[0]
POPs
Random Spin: // The following makes it random: axis = rand(@id) - set(0.5, 0.5, 0.5); spinspee...
Move Files
import os,hou, shutil selected = hou.selectedNodes() for x in selected: if x.parm("env_map...
Update frame range from file
def grabFrames(self): import os plate = self.parm("backplate").eval() if not plate...
split by group
import hou selected = hou.selectedNodes()[0] groups = [g.name() for g in selected.geometry().pr...
Set Frame Range without Script
import hou; anode = hou.pwd(); start = anode.parm("framemin").eval(); end = anode.parm("framem...
ROP
PostRender open MPLAY: import os; img_path = "`chs("picture")`".replace("$F", "\*"); os.system("...
Pull version from hipname
Can be used in a parameter. Returns a integer. import hou, re version = re.findall('_v\d+', hou...
Install Ubuntu in distrobox
Install Docker first: # Add Docker's official GPG key: sudo apt-get update sudo apt-get instal...
Raw to JPG
ufraw-batch --out-type jpeg *
Convert PNG to Icon
first convert to 256 convert input.png -resize 256x256 output.png last convert to icns png2icn...
PDF to one image
convert in.pdf +append out%d.png sudo apt install imagemagick If convert is broken, update po...
Retime track in nuke
Retiming a curve There are many retiming options in Nuke but how do you retime tracking data or ...
Hardware encoding
Intel example command: ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri...