| Reference | Downloads | Github

Task not able to run, got an attribute error while assigning opacity value. Please help!

windows 7**
PsychoPy version 1.83
Im trying to develop a task where there will be a background grid of four rectangle boxes, an image will appear in one of the rectangular box. When i have set 4 images for each of the boxes and inserted condition for the experiment trials. As i said outo f 4 images, one image has to appear. So i marked $ with a target image file name in the opacity option. But in the runtime. It is showing an error, object has no attribute (setOpacity).

Please help me, Thank you in advance


The error suggests you are trying to set the opacity of a number (int), rather than an image stim. Will need to see the relevant code or Builder file to see what is happening.

1 Like