[open] help with sketchpad
Hello, i'm building a quite simple experiment with one categorial variable. This variable represent a simple arrow directing either to the right or to the left (two levels). I tried to draw this two arrows and defined them in the "experimental loop" by the name "arrows" with two levels of right and left. Furthermore i defined anothr variable of correct response: L for the right arrow and S for the left arrow. Also i pointed for 2 cycles (for this two levels of arrow variable) with 50 repeated trails (a whole of 100 trails for a sequence). The only thing is that i couldnt find the way to for applying a random representation of those two types of arrows in the trial sequence. I would appriciate any help about this.
Rotem

Comments
Hi Rotem
I think it is a better idea to define both variables in the block_loop, and run both of the arrows in the same trial sequence. To make sure that the order of the arrow direction is random, and only one arrow is shown per trial, you could the square-bracket method in combination with Run-if statements.
More precisely:
Does that make sense?
An example experiment can be downloaded here (change the extension to .opensesame and open as normally):
For more information, see:
Please don't hesitate to ask any further questions!
Cheers,
Lotje
Did you like my answer? Feel free to

Hey Lotje,
Thanks a lot for your detailed answer. That was really helpful!
I now completed building the experiment and tried to fully run it.
Unfortunately i recieved the following message:
"An unexpected error occurred, which was not caught by OpenSesame. This should not happen! Message:
The picture file 'arrowdisplayright' does not exist".
What is the problem to your opinion?
I have 3 blocks in my experiment. The only difference between them are the instructions.
Regrding the instructions- i tried writing them in hebrew but open-sesame did not recognize it. Is there any option to solve this?
Thanks again for your help,
Rotem.
hi
for hebrew instruction I am using either:
regarding the pic - is the file in your file pool?
Dror
Hey Dror,
Thanks for your help. I will follow your instructions regarding Hebrew.
The pic id not on my file pool. I draw it in sesame and didn't upload it.
Should I put it in my file pool? How can I do that?
Rotem.
hi
I tried to run Lotje exp and it worked fine
if you still cant find the problem, upload the exp and I would be happy to help
Dror
Hey, I managed to solve the problem (it was something i edited in the script and forgot to change back). Anyway, the experiment is running fine now except two last things:
Rotem.
Thanks again!
Couldn't find the "other" section. I only have the three options i mentioned before. Where can i find it?
Another thing, if i replicated a trial sequence to other blocks but now i want to differentiate them in the instructions level or any other level, how can i cancel the connection between them?
two options to the instruction part:
for the Hebrew part:
edit: if you still prefer to use older version then 2.8:
in the sketchpad edit the text object (right click-->edit) and change the font family to any hebrew font (e.g. rod),
pay attention that if you use Hebrew words as variables values they would be displayed reversed and you need to change it with a little inline script:
add at the beginning of the trail an inline and in the prepare phase put
exp.set('VAR_NAME',self.get('VAR_NAME')[::-1])
hope it helps
Dror
A small tip: As of 2.8.0 it should no longer be necessary to flip strings around as Dror suggests (although it's in principle a fine solution).
Bi-directional-text support is new and largely untested though, so let me know if you encounter any issues.
Check out SigmundAI.eu for our OpenSesame AI assistant!
I couldn't see the option for download of version 2.8-they write the following: "Currently, work is being done on OpenSesame 2.8.0 Gutsy Gibson". There is only pre-release packages or sould i go to Github website?
Hey Dror,
I tried the two options you gave me regarding the heberw issue.
From some reason i couldn't find the proper link in snapshots page for downloading version 2.8.
I also edited the family font to rod but sesame exhibited the text in a miror view.
Would appreciate your help again.
Rotem.
http://files.cogsci.nl/software/opensesame/pre-releases/
and download the latest pre (currently 11)
if you download 2.8 the mirror problem will be solved if you mark "bi-directional-language-support"
if you still want to use older version you can check lotje in-line script she posted
http://forum.cogsci.nl/index.php?p=/discussion/280/solved-hebrew-text/p1
Hey, i downloaded 2.8 and marked the "bi-directional...". The Hebrew is working fine now except that the "rod" font somtimes disappear from the sketchpad script after i already edited it and open sesame is giving me an error window during . How can i solve this problem?
Hi Rotem,
Could you please provide us with
Cheers,
Lotje
Did you like my answer? Feel free to

Hey,
This is my sketchpad script for my insructions in the first block.
Please notice that the font family is empty after it was already specified to "rod" and disappeared again.
This is the error message:
hi
I tried to write your experiment in my computer and it worked fine with minor changes:
don't change anything else - don't edit and change to "rod" it is only good for earlier versions.
hope it helps
dror
I did all the above but still have the same error announcement. Sould i leave the: " set font_family "" " in the sketchpad script empty?
I ment "text display" not sketchpad
ok , i see the problems
I'll try to play a little bit and will see how to define it exactly
Thanks! waiting for your reply
hi here is an experiment that works
there are some problems with Hebrew but I will post it in a different discussion
important- sometimes font family -"" appears - just delete it and it will work
I used font family davis +bi directional, ant in the text display I left it blank
http://pastebin.com/394ySNWq
Hey Dror, i think i did everything you said. In the main page i applied david + bi....
In all my text displays, i left "font family" empty and also deleted in the scripts the "set font_family "". Then i ran the experiment and the hebrew worked great but the next time i tried it, the "set font_family "" jumped back to the scripts and again the error massage about the font
Hi, i already applied the instructions through sketchpad after i saved them as png forms.
Its working fine though i still have the same font problem, probably because of the blank screens i'm using after the fixation and at the end of a trial. Anyway, here is my experiment. Hope this would help for solving the problem.
change text display blank from text display item to sketchpad
it should do the trick
and if not and you can paste your exp in pastebin.com and provide the link it would be great
Dror
here's the link
http://pastebin.com/8gAdkZTb
if this won't work i'll do the same trick for the blank screens as i did for the instructions and change the text display with sketchpad items.
thanks...