| Reference | Downloads | Github

Trying to show value of rating bar while mouse is moving

I am trying to pull out the ratings from the rating bar and show it in a textbox on the same page, but I can’t get a textbox to update on real time. Are there any suggestions?

Right now the function I use to get real time ratings are these two. ( according to previous posts)


I put the results from these two functions in ‘textstim’, but the text is not real time.


Hi @Neil_Zhang, if you use a Slider component rather than a rating scale, you can do the following. With your text component called text and your Slider component called slider, in a code component and relevant tabs:

# Each Frame:
text.text = slider.markerPos

thank you! I got it working!