Want to achieve something like a photo album, showing pictures not in the assets folder, but elsewhere on the HD of a user. Loading a texture directly with:
get_node("../TextureRect").texture = load(imgFile)
gives an Error like "No loader found" if say a ".png" file is outside the asset folder. I can load this "external" file into an Image object without error, but I found no way to convert this Image to a texture and assign that texture, like so:
var imgFile = "F:/pictures/" + fileList[imgNumber]
imgNumber += 1
var img = Image.new()
Before I set the texture of the "TextureRect" to an "ImageTexture" with size 640 x 360. With this there always is an error like:
"Condition '!texture->active' = true"
Cannot figure out what I am doing wrong.