Hello! My first time playing with Godot & GDScript, so everything is new to me. I'm trying to get colour pixel data from a picture with the intention of using pictures to generate tilemap worlds. But I've stumbled at the second hurdle...
Testing the idea I did this:
var image = load("res://assets/HeightMap1024x1024.png")
var map = get_node("/root/home/MapPreview")
"MapPreview" is a texture frame control. The above code is triggered by pressing a button.
The picture appears in the frame, no problem. But the print() output, no matter where I target in the picture is always "000000" (The pixel at 100,100 is dark blue.)
Same happens in stable and a nightly build.
In 3.0 the debugger gives the following "Condition ' !ptr ' is true. returned: Color()" which I don't understand.
What am I missing?
UPDATE: I installed 2.1.4 and it works there. Still not working in 3.0 (a 2 day old nightly build from https://bintray.com/calinou/godot/editor/2017-10-16.cc7f224#files) . **
**Also note 3.0 has changed TextureFrame to TextureRect
Promoted to a bug report: https://github.com/godotengine/godot/issues/12245