Rotation Error
Hi everyone,
I cannot say how useful this forum is, thank you all!
After solving the bigger problems, now I am stuck with the rotation issue. Normally in OpenSesame, I can assign numbers to rotation variable in the loop and simply put it in the sketchpad. It works smoothly. However, when I try to do it on OSWeb, rotation function doesn't work. I just wanted to ask whether it is not supported, or there is something wrong with my script. And here is how my loop and sketchpad script look like:
Thank you for your support!
Best,
Jonah
Comments
Hi @wishiknewprogramming ,
In OSWeb, rotation is currently not supported. A workaround might be to create separate bitmaps for the various rotations and include the rotation value as part of the filename, like
object_1_45.jpgfor a 45° rotation of object 1. And then you can use therotationvariable to select the correct file, like so:object_[object]_[rotation].jpg. Would that work?— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi @sebastiaan ,
Thanks a lot for the answer, it works! I was thinking the same workaround but just wanted to make sure about the issue.
Thanks again!
Best,
Jonah
@sebastiaan is there any other workaround for rotating an image on a sketchpad in OSweb that does not require uploading images in all rotations to the file pool?
I'm working with a color wheel image which is quite big in size (50kb) and want to rotate it randomly on every trial to vary the location of the correct response color on the screen. I want to use all rotation possibilities 18 degrees apart on a circle (0, 18, 36, ... 342) which would mean uploading 20 separate color wheel images with different rotations. I'm reluctant to do that given the memory problems I experienced with OS web experiments using images.
Thanks!
Louisa
@LouisaB The memory issue should be resolved in OSWeb 1.3.11, which we'll release soon as part of OpenSesame 3.3.6. So then you can just stick to using separate images for each rotation :-)
Check out SigmundAI.eu for our OpenSesame AI assistant!