Hi There,
Looks like marker is not an attribute of slider in psychoJS. JSDoc: Class: Slider
slider._markerSize = [.06, .06]
Would remove the error but might not produce the behaviour you need, so you may want to have a play with other parameters of the object.
Here’s some tips you might find helpful for manipulating component parameters in this way online, and here is a demo of these steps I took with your example markersize.psyexp (6.3 KB) .
You can view the list of attributes a component has online as follows.
- Add that component to the window e.g.
window.slider = slider
- Whilst running your experiment open your developer tools ( sees PsychoPy Python to Javascript crib sheet for how to do this on specific browser)
- inside your developer tools console type “window.slider” this will expose all the parameters that object has in psychoJS.
In your example, we can see that “marker” is not in the list (and so is not defined - producing your error), but “_markerSize” is, meaning that this is a parameter we can manipulate online. In the demo builder file, note that code type is set to both (and I also made an edit in the each frame tab).
I hope that this information is helpful!
Becca