Recently Updated Pages
Fun Shelf Scripts
Version up sops that have a "version" parm - I use this to version up a lot of exports in tops or...
Bake Camera from Alembic
Shelf script to bake camera form Alembic camera in scene. Must select the child camera in the ale...
Points
divide points into 3 equal parts: i@part = floor(fit(rand(@ptnum+.258), 0, 1, 0, 2.9)); Nage ...
Button Python Scripts
Make Flipbook button. Must make an opengl in pipeline for the path details. Takes resolution fr...
Example On Node Buttons
This is how a button on a non-adminned node needs to be laid out: import hou (probably not nee...
Get frame range from alembic
This script should be added to a button on a node (thats why it's funnyily formated) import _...
Copy Text to Clipboard example
This example I make a dictionary and copy to clipboard. I also gather a frame range from files on...
Links
Big resource: https://lex.ikoon.cz/vex-snippets/
Spiral
#include "math.h" #include "voplib.h" float easeOutCirc ( float t ) { return sqrt ( 1 -...
Expressions
Switch by Normal: if(point("../resample3", 0, "N", 2)<0, 0, 1)
Web Convert
OGV: in_old = "path_to_vid.mp4" new = ${in_old%.*}.ogv ffmpeg -i $in_old -codec:v libtheora -q...
Send to Tops
import hou nodes = hou.selectedNodes() topnet = hou.node("/obj/topnet1") if not topnet: ...
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...
Orientation
Get transform and orientation from camera: string camera = "/obj/alembicarchive1/Camera2/CameraS...
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]