Howdy, Stranger!

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

Supported by

[opensesame] Different behaviour running experiment on OSWeb and Opensesame

Dear all,

I am an OpenSesame newbie, I love how intuitive it is and how well written the documentation is! Still, I have a problem with the implementation of my experiment in OSWeb. Here it is:

I want a cue to be rotated when presented at the bottom of the screen. My solutions work on OpenSesame, but they don't work on OSWeb.

The cue and the proper rotation follow:

A. I insert in the sketchpad two cues (one with 0° rotation and the other with 180° rotation) and use the "show if" parameter:

https://forum.cogsci.nl/uploads/013/JPC3KHFML5QD.png There was an error displaying this embed.

Quickrunning on Opensesame it rotates the cue, it doesn't rotate it when testing on browser (No compatibility problems detected).

B. I define a "rotation_cue" variable and use inline javascripting to set the rotation variable at every trial.

Inline Javascript (tried both in "prepare" and in "run"):

Again, quickrunning on Opensesame it rotates the cue, it doesn't rotate it when testing on browser (No compatibility problems detected).

Also, trying to debug the second option, I noticed that the rotation_cue variable is properly assigned (before the cue appearing). So, my guess is that there is no problem with the inline JavaScript:


Thank you for your attention.

Damiano

Comments

  • HI @DamianoG ,

    Rotation of image elements is not supported by OSWeb yet (v1.3). (The compatibility check won't catch that, but I will add it to the documentation.)

    As a workaround, you can create two differently rotated versions of the cue and use the rotation as part of the filename (instead of the rotation keyword) in the script, like so: file="cue3_[rotation_cue].png" .

    Does that make sense?

    — Sebastiaan

  • Hi Sebastiaan,

    that makes a lot of sense! Thank you very much! It works and it is a beautiful workaround.

    Damiano

Sign In or Register to comment.