Slider starting position

OS : Win10
PsychoPy version : 3.0.5
**Standard Standalone? ** : Yes

I am currently using the Psychopy Builder. At the beginning of my experiment, I have a number of stimuli participants view. After each stimulus, they are asked to rate the stimulus on 4 dimensions. I have it set up so that there are 4 scales that appear on screen, and each scale goes from 1 to 100. The style of slider I am using is the triangleMarker. When the scales are displayed, there is no triangleMarker on screen. Instead, participants must first click somewhere on the scale for the marker to appear, and then they can move it around. I would like the triangleMarker to appear on each of the 4 scales at the halfway point (50) and then have the participant move them from there. I cannot see a place to choose that in the options menu. How would I do this?
Thank you,
Stephen

Hi @Steve_Pierzchajlo, you could use a code component to set the marker position at the beginning of each trial (see docs). E.g.,

# Begin routine tab
slider.markerPos = 50

It worked. Thank you!

Hi both,

I’m having the same issue and tried the solution provided by David but couldn’t get it to work. Every aspect of the slider works except the marker doesn’t show at the beginning of the trial. I’m using the builder with the following code component:

Begin Routine

Scale = visual.Slider(win=win, name='Scale',
    size=(.5, .05), pos=(0, -0.2),
    labels=['Not at all', 'Extremely'], ticks=(0, 100),
    granularity=0, style=('triangleMarker'),
    color='gray', font='Arial',
    flip=False, labelHeight = .025)
Scale.marker.size = (.05, .05)
Scale.markerPos = 50

Any help would be much appreciated, I’ve attached the routine in question here too if that helps.

Sara

emotions_to_rate.xlsx (8.0 KB) Relief_rating.psyexp (19.7 KB)