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

CommandSyntaxExampleDescriptionCategory
cdcd [dir]cd /objChange current directoryNavigation
chch pathch ../txGet channel valueChannels
chchchch path valuechch tx 5Set channel valueChannels
chdelchdel pathchdel txDelete channelChannels
chkeychkey [-t time] path valuechkey -t 1 tx 5Set keyframeChannels
chkeyschkeys pathchkeys txList keyframesChannels
echoecho [-n] textecho $FOOPrint textVariables
framecopyframecopy src dstframecopy 1 2Copy animation framePlayback
framedelframedel frameframedel 10Delete animation framePlayback
globglob patternglob *.hipList files matching patternNavigation
grpcfgrpcf pathgrpcf /obj/geo1Set group contextGroups
grpcpgrpcp src dstgrpcp group1 group2Copy groupGroups
grpdelgrpdel groupgrpdel group1Delete groupGroups
helphelp [command]help opaddShow helpSystem
historyhistoryhistoryShow command historySystem
lsls [-l] [path]ls /obj/*List contents of specified directoryNavigation
objcopyobjcopy src dstobjcopy cam1 cam2Copy objectObjects
objdelobjdel objectobjdel cam1Delete objectObjects
opaddopadd [-n] type [name]opadd box box1Create new operatorOperators
opcdopcd [path]opcd ../Change operator directoryOperators
opcfopcf [path]opcf /obj/geo1Change current operator contextOperators
opcpopcp source destopcp ../box1 box2Copy operatorOperators
opdelopdel [-c] pathopdel box1Delete operatorOperators
oplsopls [-l] [path]opls /obj/*List operator nodesOperators
opmvopmv source destopmv box1 box2Move/rename operatorOperators
playplay [start [end]]play 1 24Play animationPlayback
pwdpwdpwdPrint current working directoryNavigation
quitquit [-f]quitExit HoudiniSystem
renderrender [options] pathrender /out/mantra1Render nodeRendering
setset var [value]set FOO 42Set variableVariables
unsetunset varunset FOOUnset variableVariables
viewwriteviewwrite [options] fileviewwrite image.jpgSave viewport to imageViewport