🔨Utility

Learn how to use the utility tools.

Generate compliant UUIDs

Returns a UUIDv4 string. This is a standard UUID as it is used across the WrangleBot platform. It's encouraged to also use uuids when creating and saving custom Objects.

wranglebot.utility.uuid()

List all available LUTs

Retrieves the list of LUTs in the LUT folder of the local instance.

wranglebot.utility.luts();

List Contents of Folders

Returns an array of items found on the local file system.

wranglebot.utility.list(pathToFolder, {
    showHidden: false, 
    filters: "folders", //"both" | "files" | "folders"; 
    recursive: true, 
    depth: 3
});

Deep Index Folders and Volumes

If you want to get detailed information of the content of a folder, you can use .index

You can filter by asset classification and use regexpressions to match specific patterns. Using regex is optional, leave empty to match all.

const file_types_to_find = ["video","video-raw","audio","sidecar","photo"]

const regex_to_match = "/^[A-Z][0-9]{3}/" //tries to match any file starting with A001, A002, A003 etc

wranglebot.utility.index(pathToFolder, file_types_to_find, regex_to_match);

Last updated