Houdini 18.0 Nodes TOP nodes

File Compress TOP node

Compress files into an archive.

On this page

This node generates a work item for each incoming work item that takes all file results tagged file and compiles them into a compressed archive. The output result of each work item is the archive file.

TOP Attributes

method

string

The compression method (for example, "zip" or "tar.gz").

output_file

string

File path to the output archive file.

input_files

string

Array of path strings representing the source files compiled into the archive.

Parameters

Mode

How do decide what file(s) to compress:

Custom File Path

Set the path to the file to compress in the File Path parameter.

Upstream Output Files

Compress any file paths in the output attributes of incoming work items if they have the given file tag.

File To Compress

When Mode is "Custom File Path", the path of the file to be compressed.

File Tag

When Mode is "Upstream Output Files", compress paths in the output attributes of incoming work items if they have this file tag.

Compression Method

The archive method/format, ZIP or tar.gz.

Output File

Specify the file path of the generated archive file. The file extension will be added if not specified.

Examples

example_top_filecompress Example for File Compress TOP node

This example demonstrates how to compress files using TOPs / PDG.

input1 Example for File Compress TOP node

input2 Example for File Compress TOP node

See also

TOP nodes