The Folder DAT lists the files and subfolders found in a file system folder and monitors any changes.
For each item found, a row is created in the table with optional columns for the following information:
- Base Name
- Relative Path
- Date Created
- Date Modified
- Date Accessed
Parameters - Folder Page
active - When off, the DAT outputs a single-row table with only the headings, useful when dormant or when sending the DAT to a Replicator COMP.
rootfolder - The folder in the filesystem whose contents will be displayed in the DAT list.
refresh - When on, it monitors the specified folder(s) of the filesystem.
refreshpulse - The pulse button reads the folder contents once.
async - When on, the update happens asynchronously from the main thread so it doesn't make TouchDesigner drop frames or pause. As a result, the Folder DAT way not update its data within the next frame after the change on disk.
nameformat - ⊞ - Select whether to include the filename extension or not.
- Include Extension
- No Extension
dateformat - ⊞ - The format used to display the item's dates in the table.
std- A standard date format.
epoch- A reference date format.
type - ⊞ - The types of contents to display.
files- Include files.
folders- Include folders.
- Files and Folders
filesandfolders- Include both files and folders.
folders - Use Pattern Matching to specify which folders are included. Matches the folder path. Delimiters used are spaces and commas. To match spaces, enclose the entire search term in double quotes.
names - Use Pattern Matching to specify which names are included. Delimiters used are spaces and commas. To match spaces, enclose the entire search term in double quotes.
allextensions - Includes all file extensions.
imageextensions - Includes image contents that are supported by TouchDesigner. See supported File Types.
movieextensions - Includes movie contents that are supported by TouchDesigner. See supported File Types.
audioextensions - Includes audio contents that are supported by TouchDesigner. See supported File Types.
extensions - Use Pattern Matching to specify which extensions are included. Extensions listed here should not include the period. E.g *txt, not *.txt.
subfolders - Includes the subfolders from the root folder specified.
mindepth - Set a minmum depth for the subfolders the Folder DAT should recursively search through.
limitdepth - Turns on the Maximum Depth parameter to limit searching through subfolders. Turning this toggle off will search through all subtrees.
maxdepth - Set the maximum depth for the subfolders the Folder DAT should recursively search through.
Parameters - Columns Page
namecol - The name of the folder or file. In the case of a file this includes the extension. ie.
basenamecol - The name of the folder or file. In the case of a file this form does not includes the extension. ie.
extensioncol - The file extension of the file, blank for folders. ie.
typecol - The type of file as reported by the operating system.
sizecol - The size of the file in Bytes. Folders do not report any size.
depthcol - How many folders deep the item is found from the Root Folder. Items on the Root Folder level have a depth of 0.
foldercol - The path of the folder, or in the case of a file, the path of the folder the file is found in.
pathcol - The full path to the folder or file.
relpathcol - The relative path to the folder or file from the Root Folder.
datecreatedcol - The date of creation.
datemodifiedcol - The date of most recent modification.
dateaccessedcol - The date of most recent access or opening.
Parameters - Common Page
language - ⊞ - Select how the DAT decides which script language to operate on.
input- The DAT uses the inputs script language.
node- The DAT uses it's own script language.
extension - ⊞ - Select the file extension this DAT should expose to external editors.
dat- various common file extensions.
- From Language
language- pick extension from DATs script language.
- Custom Extension
custom- Specify a custom extension.
customext - Specifiy the custom extension.
wordwrap - ⊞ - Enable Word Wrap for Node Display.
input- The DAT uses the inputs setting.
on- Turn on Word Wrap.
off- Turn off Word Wrap.
Info CHOP Channels
Extra Information for the Folder DAT can be accessed via an Info CHOP.
Common DAT Info Channels
- num_rows - Number of rows in this DAT.
- num_cols - Number of columns in this DAT.
Common Operator Info Channels
- total_cooks - Number of times the operator has cooked since the process started.
- cook_time - Duration of the last cook in milliseconds.
- cook_frame - Frame number when this operator was last cooked relative to the component timeline.
- cook_abs_frame - Frame number when this operator was last cooked relative to the absolute time.
- cook_start_time - Time in milliseconds at which the operator started cooking in the frame it was cooked.
- cook_end_time - Time in milliseconds at which the operator finished cooking in the frame it was cooked.
- cooked_this_frame - 1 if operator was cooked this frame.
- warnings - Number of warnings in this operator if any.
- errors - Number of errors in this operator if any.
|• • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •|