@dvbridges Thanks for the suggestion. I will change it to a Slider instead of using the rating scale. But currently, i encountered one problem. As I would like to show the marks of the slider while the participant is sliding the bar, I tried to add a code on the slider:
sliderposition = []
sliderposition = slider_2.getMouseResponses()
text_82 = visual.TextStim(win=win, name='text_82',
text= '%3i' %(sliderposition),
font='Arial',
pos=(0, 0.3), height=0.03, wrapWidth=None, ori=0,
color='white', colorSpace='rgb', opacity=1,
languageStyle='LTR',
depth=-1.0);
However, this error popped up:
I have tried using '%s' %(sliderposition)
instead of '%3i' %(sliderposition)
. They both did not work
You should not need a code component for this. Have a look at this example, the text component is updated every frame with the sliders marker position.
:updateText.psyexp (6.1 KB)
If you did want to use a code component, then in the “Every Frame” tab you would use:
text_82.setText(slider.markerPos)
# or
text_82.text = slider.markerPos
@dvbridges I see!!! Thank you so much!!! Would you suggest a method to deal with the movie size problem? as i have tried changing the size to (1,0.56) as the original size of the video is 1280 x 720, the video cannot be shown either. A blank frame appears in the loop instead.
Your other videos seem to play ok at the beginning, so just do whatever you are doing there, if they are sized as you want them
@dvbridges Yes, i deleted the numbers in the size column and leave it blank. However, there is a problem when it comes to the loop.
What is the problem with the loop?
@dvbridges I have no idea cause the problem only appears on the loop so I suppose there’s some problem with the loop…
A description of the problem would be helpful for debugging. First though, I would change the rating scale to a Slider and get that working.
@dvbridges Thank you for the suggestion. I have changed the rating scale to a slider and tried to create box with text which participant could press the number shown to proceed to next question. However, the coding seems does not work on Pavlovia, including the part I use the code to calculate the total marks (I did it by adding the code to the text). Also, the movie problem still exist, movie remains a blank black frame in the loop, and for movies that are not included in the loop, the movie freeze sometimes.
Please refer to this link: https://pavlovia.org/run/yuewingyin/motion-testing-2/html/
Hi @Winnyue, there appears to be an issue with the size of movie_7
. It looks like a space has been added to the size parameter. If there is a space, delete the space and try again . Otherwise, please let me know, and then add an actual size e.g., [.6, .4]
.