PreviewStrip

Wrap a try…except around loader.loadTexture() for the files it can’t load. Even better might be checking file extension. By now it tries to load ALL files in the current directory. Using it as it is now in the same directory where you store the py file, it will fail because it tries to load itself (the python file) as a texture.

Also the path set up there seems to be relative to the current working directory, not relative to the python file, what i’d expect. This is still convenient to start the script from anywhere and make it load up the current dir.

Still it’s a nice snippet. Thanks for sharing :slight_smile: