Forum

List of image files

Hi,
I’m a newbie, and I have a problem with a patch I’m building: I’m using the “FileTexture” node to use some image files as textures to be assigned to some geometrical shapes; my question is: there’s a way to build a list of images files to be assigned to the “FileTextures” node, so that I can change the textures every few seconds?
thanks

hi maxdis,

use the Dir (File) with a filemask like *.jpg to scan a directory for textures, then connect the whole file list to the FileTexture, to load all of them. Now they are all in the memory and you can use GetSlice (Node) to have instant access to any of them.

thank you!