On this page |
Command line options ¶
If you start Houdini from the command line, you can specify options, and also optionally a list of files to open (.hip
scene files, .cmd
or .py
scripts, .hda
libraries to load).
houdini [‹options›] [‹file› ...]
Houdini recognizes the following options.
-foreground
In macOS and Linux, when you run Houdini from the command line, by default it “backgrounds” itself, returning control of the terminal to the shell. This option instead keeps Houdini in the “foreground”, meaning you won’t be able to type more commands to the shell until Houdini exists or you press ⌃ Ctrl + Z to pause the foreground process.
-background
Houdini will “background” itself after starting, returning control of the terminal to the shell. This is the default.
-geometry
Define the window geometry on the screen (see also -span
). For example
houdini -geometry=‹W›x‹H›+‹X›+‹Y›
(where ‹W› is width, ‹H› is height, ‹X› is horizontal position, and ‹Y› is vertical position). The geometry specification cannot have spaces. ‹X› and ‹Y› may be negative (in which case you would use -
instead of +
as a separator). Some window managers do not allow larger windows than the screen, overlapping of manager toolbars, and/or positioning offscreen.
-profile-startup
When this option is specified, Houdini will output Performance Monitor events to the terminal or window console for tasks performed during Houdini startup. The -profile-startup option can also accept a a file path argument. For example:
houdini -profile-startup=/path/to/startup.hperf
In this case Houdini will save Performance Monitor statistics to the specified file rather than output Performance Monitor events to the terminal or window console. The saved file can be loaded into Houdini’s Performance Monitor pane for inspection. Note that the file name should end with an .hperf
extension for the Performance Monitor pane to see the file by default.
-span
When you specify this option on a computer with multiple monitors, Houdini will start up spanning all monitors, so the main Houdini window fills them all (where possible, discounting resolution differences and non-rectangular layouts). This only works on some window managers, and has no effect in single-monitor setups. Cannot be used with -geometry
.
-screen ‹N›
Which screen to open the main Houdini window on (for computers with multiple monitors). Note the space between the option and the screen number.
-s ‹name›
/ -desktop ‹name›
The pane layout to start up with. These are listed in the Desktop menu in Houdini, such as Build
or Technical
. You can list all available layouts in a Python shell using hou.ui.desktops.
See pane layouts for more information about switching and saving desktop layouts.
Tip
This starts up Houdini using the named desktop, but does not change the default desktop preference.
-j‹N›
The maximum number of threads Houdini may use. Note no space between option and the number of threads.
-n
Start Houdini in “manual” cook mode.
-apprentice
Start Houdini in Apprentice mode. This will use an Apprentice or FX License.
-core
Start Houdini in Core mode. This will require a Core license.
-indie
Start Houdini in Indie mode. This will require an Indie license.
waitforui
If mixed in with the ‹files› to load, specifies a point at which Houdini should wait until the GUI is available before loading the rest of the files.
For example:
houdini -foreground myscript.cmd waitforui setupshelf.py my.hip
In this example, Houdini would load myscript.cmd
immediately, but wait until the GUI was available before loading setupshelf.py
and my.hip
. This is useful for scripts that require certain UI elements to function (such as desktops, shelves, or panes).
-hess=(pipe|port):‹value›
Automatically start Houdini Engine SessionSync. You must specify the type of connection (pipe
or port
) and a pipe name or port number.
For example, to use a named pipe :
houdini -hess=pipe:‹name›
(where ‹name› is the name of the pipe).
To use a socket:
houdini -hess=port:‹number›
(where ‹number› is a port number between 1024 and 65535).
Note
To launch Houdini Core using a Houdini FX license, use the following argument:
houdinicore --skip-licenses=Houdini-Escape --check-licenses=Houdini-Master
Exit codes ¶
If started from the command line, Houdini may exit with one of the following codes:
0
No error.
1
Generic error (catch-all code).
2
Misuse of shell built-ins (according to Bash documentation)
3
Failure to check out or verify an appropriate product license.
4
Socket communication failure.
5
Error while parsing UI definition file (.ui).