Difference between revisions of "Tips and Tricks"
Views
Actions
Namespaces
Variants
Tools
(Created page with "== Force viewport textures to reload == Type this [https://www.sidefx.com/docs/houdini/commands/glcache.html command] into an hscript textport. <syntaxhighlight lang='C++'> gl...") |
|||
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Force viewport textures to reload == | == Force viewport textures to reload == | ||
Type this [https://www.sidefx.com/docs/houdini/commands/glcache.html command] into an hscript textport. | Type this [https://www.sidefx.com/docs/houdini/commands/glcache.html command] into an hscript textport (you can raise a new hscript textport window using the shortcut Alt+Shift+T). | ||
<syntaxhighlight lang='C++'> | <syntaxhighlight lang='C++'> | ||
glcache -c | glcache -c | ||
</syntaxhighlight> | |||
== Make Houdini crash == | |||
Type this command into an hscript textport and Houdini will crash. | |||
<syntaxhighlight lang='C++'> | |||
coredump -f | |||
</syntaxhighlight> | |||
== Remap $HIP path == | |||
Type this [https://www.sidefx.com/docs/houdini/commands/setenv.html command] into an hscript textport to remap where $HIP paths to. This can be useful if you've moved the Houdini scene file but not everything else it was linking to. | |||
<syntaxhighlight lang='C++'> | |||
setenv HIP = /Users/john_kunz/Downloads/ | |||
</syntaxhighlight> | |||
== Hide nodes in the network editor == | |||
Type this command into an hscript textport to hide nodes in the network editor. | |||
<syntaxhighlight lang='C++'> | |||
opset -e off /obj/geo1 | |||
</syntaxhighlight> | |||
== See who created a node == | |||
Type this command into an hscript textport to reveal who created a node. Figure out who to complain to. | |||
<syntaxhighlight lang='C++'> | |||
opstat /obj/geo1 | |||
</syntaxhighlight> | |||
== See what version of Houdini the scene was saved with == | |||
This [https://www.sidefx.com/docs/houdini/ref/internalvariables.html internal variable] can be used to figure out what version of Houdini the scene was created in. | |||
<syntaxhighlight lang='C++'> | |||
echo $_HIP_SAVEVERSION | |||
</syntaxhighlight> | |||
== Export node information to a text file == | |||
Type this command into an hscript textport to dump node information as a plain text document. Useful if you're passing along geometry caches to another artist so they can be aware of existing groups and attributes. | |||
<syntaxhighlight lang='C++'> | |||
opinfo /obj/grid1/subdivide1 > $HOME/Downloads/info.txt | |||
</syntaxhighlight> | |||
== Merge nodes from other scenes into your file == | |||
Type this [https://www.sidefx.com/docs/houdini/commands/mread.html command] into an hscript textport. | |||
<syntaxhighlight lang='C++'> | |||
mread -m /obj/geo1/* $HOME/Downloads/example.hip | |||
</syntaxhighlight> | |||
== Print all hidden nodes == | |||
The [https://www.sidefx.com/docs/houdini/commands/ophide.html ophide] command can be used to list all the legacy, depreciated and utility nodes which are hidden in the tab menu. | |||
<syntaxhighlight lang='C++'> | |||
ophide | |||
</syntaxhighlight> | |||
== Unhide legacy and utility operators == | |||
Type this [https://www.sidefx.com/docs/houdini/commands/opunhide.html command] into an hscript textport. | |||
<syntaxhighlight lang='C++'> | |||
opunhide Sop tetrahedralize::2.0 | |||
</syntaxhighlight> | |||
== Save and version up your scene == | |||
Type this [https://www.sidefx.com/docs/houdini/commands/mwrite.html command] into an hscript textport. | |||
<syntaxhighlight lang='C++'> | |||
mwrite -i $HIPFILE | |||
</syntaxhighlight> | |||
== Save the output data of an operator to a file == | |||
Type this [https://www.sidefx.com/docs/houdini/commands/opsave.html command] into an hscript textport. | |||
<syntaxhighlight lang='C++'> | |||
opsave -f 1 240 -i 1 /obj/geo1/sweep1 $HOME/Downloads/sweep_$F4.obj | |||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 14:20, 25 July 2023
Force viewport textures to reload
Type this command into an hscript textport (you can raise a new hscript textport window using the shortcut Alt+Shift+T).
glcache -c
Make Houdini crash
Type this command into an hscript textport and Houdini will crash.
coredump -f
Remap $HIP path
Type this command into an hscript textport to remap where $HIP paths to. This can be useful if you've moved the Houdini scene file but not everything else it was linking to.
setenv HIP = /Users/john_kunz/Downloads/
Hide nodes in the network editor
Type this command into an hscript textport to hide nodes in the network editor.
opset -e off /obj/geo1
See who created a node
Type this command into an hscript textport to reveal who created a node. Figure out who to complain to.
opstat /obj/geo1
See what version of Houdini the scene was saved with
This internal variable can be used to figure out what version of Houdini the scene was created in.
echo $_HIP_SAVEVERSION
Export node information to a text file
Type this command into an hscript textport to dump node information as a plain text document. Useful if you're passing along geometry caches to another artist so they can be aware of existing groups and attributes.
opinfo /obj/grid1/subdivide1 > $HOME/Downloads/info.txt
Merge nodes from other scenes into your file
Type this command into an hscript textport.
mread -m /obj/geo1/* $HOME/Downloads/example.hip
The ophide command can be used to list all the legacy, depreciated and utility nodes which are hidden in the tab menu.
ophide
Unhide legacy and utility operators
Type this command into an hscript textport.
opunhide Sop tetrahedralize::2.0
Save and version up your scene
Type this command into an hscript textport.
mwrite -i $HIPFILE
Save the output data of an operator to a file
Type this command into an hscript textport.
opsave -f 1 240 -i 1 /obj/geo1/sweep1 $HOME/Downloads/sweep_$F4.obj