OS: macOS 10.13.6
PsychoPy version: PsychoPy2 1.90.3
Standard Standalone?: Yes
What are you trying to achieve?:
I would like to vary the number of vertices dynamically, so that a polygon stimulus can be either a triangle or a circle. Specifically, I am trying to recreate Miyake et al’s (2004) experiment, which I am attaching a picture of.
What did you try to make it work?:
- Typing $shape_vertices (a condition name) into the “Num. Vertices” field.
- Searching the code for where I can tweak the settings.
What specifically went wrong when you tried that?:
- I cannot set the number of vertices to change every repeat. “It is not (currently) possible to vary the number of vertices dynamically” (Polygon Documentation)
- It appears I would need to create a new function, something like .setPolygonVertices, but my Python skills are not at that level.
What I am requesting:
I would like to know if it is possible to either set the number of vertices to change every repeat from the builder view, or how I might insert a few lines of code to accomplish this in the coder view.
If neither is possible or easy, I know my last option is to manually create the stimuli (only 2x2=4 total) in MS Word and use pictures as stimuli.
I am attaching my experiment, conditions file, and picture of the task I am trying to copy.