There are 2 nodes dedicated to still image playback in Lightact:
Image reader and Image slideshow reader.
Both of them can play images in the following formats: .jpg, .png, .bmp, .jpeg and .gif.
Image reader node
Image reader node displays either one of the Image assets, or, if None of Filepath is selected as the Source, the image at the Filepath input.
You can select which you want to display in the node’s properties on the right.
Image slideshow reader
Image slideshow reader node displays images in the Filepaths array of strings input. Usually, this input is connected to Filepaths from folder node as shown below.
For more information about Filepaths from folder node, please scroll to the bottom of the article.
- Resolution: Image slideshow reader node will stretch all the images in the Filepaths folder to the resolution given in the Resolution input. Therefore, this node works best if all the images are the same resolution or have, at least, the same aspect ratio.
- Duration: the display time in seconds of a single image
- Transition: the transition time, in seconds, between 2 images. The consecutive images will smoothly fade between one another.
- Zoom speed: if the speed is positive (say around 30) the image will slowly zoom in. If it is negative, it will zoom out
- Loop: if it is checked, the slideshow will constantly loop.
- Output: the texture output
- File index: the index of the file that’s currently being shown
- Loops: loops counter.
Filepaths from folder node
This node finds all files in a folder and puts its complete file paths into Filepaths output. The node refreshes Filepaths output every Timeout seconds.
You can adjust this property on the node’s properties on the right (minimum is 10 seconds).
- Folder: in this string input you should put a path to a folder without the last backslash. A valid path is, for example, C:\Users\LightAct\Pictures\test.
- Extensions: if it is left empty, all files will be returned. If you insert one or more extensions, only files with these extensions will be returned. Use space as the delimiter.
- Check subfolders: if this is true, the node will return files in subfolders of the given folder as well. If it is false, it will return only files in the folder itself (ignoring all subfolders).
- Filepaths: an array of strings each representing one file path.
- Length: the number of found files.
- Success: false if there was an error during the operation.
- Error: a description of the error in case Success was false.