To change the value of the text use the <node3D:text3D>.message command. Add the following code to change the 3D text message:
Now, change the 2D text message and position it just above the painting of Starry Night:
Finally, we'll add a function that updates the screen text when the mouse cursor is over a painting. Using <window>.pick, we're returned a sub-object from the scene (e.g. bench, door, painting, wall) based on the cursor position. If the sub-object is a painting, it's name is displayed:
Run the script and move the mouse cursor over the various paintings.