Ooh thank you, I didn’t know this sheet existed!
I fixed a few things I found in the document and now I don’t get the error message for setImage() anymore, but unfortunately, the images can’t be shown anyway.
In my experiment, I’d like to randomly assign one of two conditions. I do this by creating a random bit and if it’s 0, the participant gets instruction image 1, and if it’s 1, they get instruction image 2.
This is my code (btw: I know, weird approach to get the random bit):
# get random bit
choose_condition = shuffle([1,0])
# choose right instruction sheet
if choose_condition == 0:
instr_condition = "Bilder_Bedingungen/Instruktion/cond1.png"
instr_condition = "Bilder_Bedingungen/Instruktion/cond2.png"
And then I set the image path as
The code seems to work, at least it generates the correct path and I don’t get an error message anymore, but as I already mentioned, the image doesn’t appear on screen and if I have a look at the developer tools in my Browser, I get the following warning: “the Pixi.js representation of this stimulus is undefined”.
I tried clearing the browser cache, but the problem persists.
Does anyone have an idea what this means and how I can fix it? I’m afraid I don’t really have a clue what’s happening there.