Folder View

From RealMotion Wiki

Logic/Content/Folder View

Gets the list of files within a folder. ​

Description

The Folder View box outputs the paths of files within a folder. The paths are outputted as a vector of string. The paths are updated each time the content of the folder changes.

General Use Case: The Folder View box is used to dynamically load and manage content. The box is often used with the Media Loader or the Get Item boxes.

A filter is also available. The filenames matching a least one filter are outputted.
Special characters:
- "?" = 1-char wildcard.
- "*" = Multi-char wildcard.
- ";" = Separates several filename patterns.
All special filters must begin with a "*".

Examples: "*.cpp *intro-*_???.mp4; *thumb_???.png; *outro-*_???.mp4\"

Inputs

Folder String Receives the folder path.

Outputs

Paths String Vector Outputs the paths of the files found in the selected folder.
Size Int Outputs the size of the string vector.
Updated Trigger Outputs an event when an update is detected in the selected folder.

Parameters

Enable Input Pin: Folder Toggle Enables the Folder Input Pin and overrides the Folder parameter.
Folder Uri Sets the folder where the folder view is done.
Recursive View Toggle Enables recursive file search.
Include Folder Paths Toggle If enabled, the paths of the folders contained in the lookup folder are outputted.
Filter preset String Sets predefined file filters based on accepted media per content box. Custom filter is available.
Filter String Adds a filter to the file search.The filenames matching a least one filter are outputted. Special characters: "?" = 1-char wildcard. "*" = Multi-char wildcard. ";" = Separates several filename patterns. Special filter must begin with a "*" Examples: "*.cpp *intro-*_???.mp4; *thumb_???.png; *outro-*_???.mp4\"

External

Updated Event Threshold Time Time Sets the time threshold between updated events. All batch operations within this threshold only fire once.
Enable Output Pin: Size Toggle Enables the Output Pin: Size

See Also

Boxes related

Audio Player, Audio Player, Texture, Texture Loader, Video Player, Read XML, Get Item, Get Size, Layers, Tile In Texture, String, ​​

Version Information

Current documentation version: 2.1.3. ​ ​