[closed] using python variables as arguments in the draw image function
Hi. I have a string array, and I wanna use its content as a partial path for the draw image function. I know how to do it with opensesame variable (using brackets), but how do I do it with python variables?
Thanks!
Comments
In inline_script items, you use the functions
self.get()
andexp.set()
to get and set variables respectively. This is described here:For example, let's say that you have a variable
img
with the value 'smiley', and a file calledsmiley.png
in the file pool. You can then showsmiley.png
with the following script:Cheers!
Sebastiaan
There's much bigger issues in the world, I know. But I first have to take care of the world I know.
cogsci.nl/smathot