In the experiment I am working on I am trying to align the text to the left. I have tried using both the text component in the builder and writing the code for a custom textsim, however the text is always center aligned on Pavlovia. The text works properly in both cases when running in the builder. Help would be very much appreciated! Thank you
I’m new to Psychopy so if there is anything else I can do to get some help on this I’d be glad to oblige. I just really can’t seem to get it to work despite getting a large portion of the rest of my experiment to work fine. If anyone has any ideas or needs more detail from me about something I’d love to hear it
The problem is that alignText is a property of TextStim in “offline PsychoPy”, but not in the online version. Use alignHoriz instead, that should work.
If you created your experiment in Builder and used a TextStim component, it should be automatically centered in PsychoPy and automatically left-aligned in Pavlovia. If it’s not doing what you want in Pavlovia, using YourTextComponentName.setAlignHoriz(‘left’) in a code component should do the trick!