[solved] A Problem with Loops
Would really appriciate any help with this.
Ive tried designing a experiment with three loops. However when I edit the script of the experiment so all files are selected form the filepool( by editing the .bmp bit to contain a variable name) , rather than having to do it individually the experiment will not run.
Anyone got any pointer on this it would be great.
Thanks
Comments
Hi Desmond,
Thank you for your interest in OpenSesame!
Could perhaps provide some more details. What error message do you receive? And what does your script look like?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi thanks for the quick response
Ill try my best to describe whats happening.
Basically im trying to replicate the cat face study on the homepage. but instead of identifying the gender of cats its identifying human emotions with 60 trials
Im following the instructions from the video of clicking edit image when on the sketch pad and changing the script to the name of one of my "[variables].bmp". In the loop tab I have already put the names of the files in a variable column
However when ive done this the experiment either shows one face repeatedly or shows the introduction slide then stops running.
I see, but I'm afraid you will have to be even more specific. What exactly happens when you run the experiment? Does it crash, and if so, how, and what kind of error message do you receive (you can usually find the error message in the debug window)? Or does it simply not do what you expect it to do?
Perhaps the easiest thing is to paste the script for the sketchpad, provide a list of the variables that you have defined in the loop, and describe the structure of the experiment. You can paste script here on the forum using the <PRE> and </PRE> tags (preferred), or you could use something like pastebin.
Check out SigmundAI.eu for our OpenSesame AI assistant!
Sebastiaan I think I may have sorted it. However I was wondering if there is anyway of editing the video script in a similar fashion to the image one.
I am currently changing the image script to "[face].bmp". Face is the name of one of my variables and This allows all the face picture files to be randomly selected. Is there a way I can do this for videos as I can not see an edit option.
Thanks
Right, yes, you need to use the actual name of the variable, between square brackets. You can do the same for the media_player, either by clicking on the 'edit script' button in the top right of the tab, or (even simpler) by simply typing something like '[my_video_file].avi' in the video file field.
Cheers!
Check out SigmundAI.eu for our OpenSesame AI assistant!