HScript Commands
Reference chart for Houdini scripting commands
Overview
HScript is Houdini's native scripting language. It provides commands for managing nodes, parameters, and scene components through a command-line interface or scripts.
Official Houdini HScript Documentation
HScript Commands Chart
Command▲ | Syntax | Example | Description | Category |
---|---|---|---|---|
cd | cd [dir] | cd /obj | Change current directory | Navigation |
ch | ch path | ch ../tx | Get channel value | Channels |
chch | chch path value | chch tx 5 | Set channel value | Channels |
chdel | chdel path | chdel tx | Delete channel | Channels |
chkey | chkey [-t time] path value | chkey -t 1 tx 5 | Set keyframe | Channels |
chkeys | chkeys path | chkeys tx | List keyframes | Channels |
echo | echo [-n] text | echo $FOO | Print text | Variables |
framecopy | framecopy src dst | framecopy 1 2 | Copy animation frame | Playback |
framedel | framedel frame | framedel 10 | Delete animation frame | Playback |
glob | glob pattern | glob *.hip | List files matching pattern | Navigation |
grpcf | grpcf path | grpcf /obj/geo1 | Set group context | Groups |
grpcp | grpcp src dst | grpcp group1 group2 | Copy group | Groups |
grpdel | grpdel group | grpdel group1 | Delete group | Groups |
help | help [command] | help opadd | Show help | System |
history | history | history | Show command history | System |
ls | ls [-l] [path] | ls /obj/* | List contents of specified directory | Navigation |
objcopy | objcopy src dst | objcopy cam1 cam2 | Copy object | Objects |
objdel | objdel object | objdel cam1 | Delete object | Objects |
opadd | opadd [-n] type [name] | opadd box box1 | Create new operator | Operators |
opcd | opcd [path] | opcd ../ | Change operator directory | Operators |
opcf | opcf [path] | opcf /obj/geo1 | Change current operator context | Operators |
opcp | opcp source dest | opcp ../box1 box2 | Copy operator | Operators |
opdel | opdel [-c] path | opdel box1 | Delete operator | Operators |
opls | opls [-l] [path] | opls /obj/* | List operator nodes | Operators |
opmv | opmv source dest | opmv box1 box2 | Move/rename operator | Operators |
play | play [start [end]] | play 1 24 | Play animation | Playback |
pwd | pwd | pwd | Print current working directory | Navigation |
quit | quit [-f] | quit | Exit Houdini | System |
render | render [options] path | render /out/mantra1 | Render node | Rendering |
set | set var [value] | set FOO 42 | Set variable | Variables |
unset | unset var | unset FOO | Unset variable | Variables |
viewwrite | viewwrite [options] file | viewwrite image.jpg | Save viewport to image | Viewport |