Houdini 18.5 Nodes TOP nodes

File Rename TOP node

Renames or moves a file.

On this page
Since 17.5

Tip

You may want to avoid using destructive file operations such as move/rename and remove. They can make files appear to be missing, triggering the dependency system to do extra work. They can also make it harder to debug the network after it runs if intermediate files are not where they were.

This node can work in two different ways:

Do the rename(s) whenever the node generates work items (Async rename off)

The node tries to rename the files synchronously when it generates work items (including when you choose TOPs ▸ Generate Static Work Items), blocking until the renaming is done. This can lead to the node working once and then erroring because the "source" file has been moved/renamed.

Do the rename(s) inside work items (Async rename on)

The node performs the renames asynchronously at runtime.

TOP Attributes

directory

string

The directory where the source file will be moved

extension

string

The extension of the destination file

filename

filename

The filename of the destination file

Parameters

Node

Original File Path

The path to the file to move/rename.

New File Path

The new path of the file. This is used as the output of the work item(s).

File Tag

The file tag to assign to the output filename.

Async Rename

When this is off, the node tries to rename the files synchronously when it generates work items (including when you choose TOPs ▸ Generate Static Work Items), blocking until the renaming is done. This can lead to the node working once and then erroring because the "source" file has been moved/renamed. When this is on, the renames are performed asynchronously at runtime (potentially on a render farm).

Schedulers

TOP Scheduler Override

This parameter overrides the TOP scheduler for this node.

Work Item Priority

This parameter determines how the current scheduler prioritizes the work items in this node.

Inherit From Upstream Item

The work items inherit their priority from their parent items. If a work item has no parent, its priority is set to 0.

Custom Expression

The work item priority is set to the value of Priority Expression.

Node Defines Priority

The work item priority is set based on the node’s own internal priority calculations.

This option is only available on the Python Processor TOP, ROP Fetch TOP, and ROP Output TOP nodes. These nodes define their own prioritization schemes that are implemented in their node logic.

Priority Expression

This parameter specifies an expression for work item priority. The expression is evaluated for each work item in the node.

This parameter is only available when Work Item Priority is set to Custom Expression.

Examples

example_top_filerename Example for File Rename TOP node

This example demonstrates how to use the File Rename node to rename a group of files.

TOP nodes