Houdini 11 HScript commands

Opens a file chooser and prints the chosen file.

Usages

  1. filechooser [options]

Asks the user to select a file via the file browser. The result is printed to the textport, and can be assigned to a variable.

Options

-d dir

Sets the directory the browser starts in.

-m

Allow the user to select multiple files.

-n name

Sets the name of the browser, visible in the dialog title bar.

-p file_pattern

Sets the initial file pattern, so that only files matching that pattern are shown. * and ? wildcards are supported. For example, *.hip, shot2_*.

-s

Allow file sequences to grouped as sequences and not individual files (foo1.pic, foo2.pic, foo3.pic: foo$F.pic).

-t filetype

Show only files of the given type. filetype can be one of:

  • hip – Houdini HIP files

  • otl – Digital Asset libraries

  • pic – Image files

  • geo – Geometry files

  • lut – LUT (lookup table) files

  • cmd – Script files

  • chan – Channel files

  • clip – Channel and Audio files

  • sim – Simulation files

  • simd – Simulation data files

  • i3d – 3D Image files

  • midi – MIDI music files

Examples

set myfile = `run("filechooser -t pic")`

On this page

Replaced by

Related topics