Hi, I’ve got an experiment where the participants have to rate a picture using a slider. The symbol on that slider which they have to move onto a certain position, is a dot. Unfortunately, the dot of the slider is wayyy to big and I want to make it smaller, but I have no idea how to do that. It needs to stay a dot and the overall slider size on screen must not change (as it indicates a certain height of the picture).
I’m an inexperienced student of psychology and I have absolutely 0 coding skills in python, which is why I use the Builder. Apart from that dot problem, everything is working as planned. So what I really love to know is how to make the dot size of the slider smaller. Thank you!
Thank you, but I get an error message for that.
So there are a few things wrong here. You are creating a Slider object called sliderTrial2. Only after the object has been created, can you call the line of code to change the marker size. You would not pass the line of code as an argument to the Class which creates the object because it does not exist at that point. Also, the line of code I gave was for changing the marker size of a Slider object called “slider” - lowercase. In your case, you will want to use
sliderTrial2.marker.size = (.1, .1). Last thing, you can do this from a code component because when you change the code in Coder, it will get overwritten every time you run the experiment from Builder. So, add a code component, in the “Begin Routine” tab, add
sliderTrial2.marker.size = (.1, .1).
Thank you so so much for your help! Nobody at my department was able to help me, but now it’s working just fine, thanks to you! You might have saved my bachelor thesis.
I am trying to do the same on JS but get this error
TypeError: undefined is not an object (evaluating ‘slider.marker.size=(.1,.1)’)
How can I change the marker size online?
It appears much bigger online than at local install.
How have you solved this error? I am getting the same when I try to run the task on Pavlovia