Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Displaying image in a canvas by referring to a variable using inline_script

edited November 2017 in OpenSesame

Hi Everyone,

I have been building an experiment in which I am constructing canvases using inline_script, and I would like to display images by referring to a varialbe that contains the list of images. Ideally, that would be done with this function; however, the function does not work because it requires specifying the exact image path:

cv = canvas()
cv.image(var.Image, center=True, x=None, y=None, scale=None)

Does anyone maybe know whether it is somehow possible to display images by referring to a variable?

Thanks a lot!

Comments

Sign In or Register to comment.