Experiment Crashing After Setting Vertices from Conditions File in Loop

OS: Win10
PsychoPy version: 2024.1.5

I am trying to create an oddball paradigm with a loop and set 6 parameters in a conditions file associated with it, including vertices, color, size, position, and correct answers for key presses.

Every time I try to run the loop, it crashes and I have gotten the following error message even after renaming my parameter and using a copy of the conditions file without the vertices parameter and with the name of the parameter deleted from the vertices field of my polygon component.

Traceback (most recent call last):
File “C:\Users_\Downloads\experimentv1_lastrun.py", line 1367, in
run(
File "C:\Users_
\Downloads\experimentv1_lastrun.py”, line 908, in run
shape.setNVertices()
AttributeError: ‘ShapeStim’ object has no attribute ‘setNVertices’
################# Experiment ended with exit code 1 [pid:7932] #################

I am really confused as to why I am still getting this error even after using a version of my conditions file that doesn’t include vertices as a parameter. If anyone could help me out with this, I would really appreciate it.

Welcome to the forum.

What does your polygon component currently look like?

Thank you! These are the settings of my polygon component in the version using a conditions file without the vertices parameter.

Duration — 0.1 s

Shape — circle

Size — $Size

Position — $Position

Fill Color — $Color

Border Color — $Color

When I was trying to run the vertices parameter earlier, I set shape to either regular or custom polygon and put the name of the parameter in the vertices field. Any field where I wrote in a parameter is set to change every repeat.

Also, here are the details of a row of my conditions file for reference:

Condition Color Size Position CorrectAnswer
Standard (-1.0000, -0.2157, -1.0000) (0.3, 0.3) (0, 0) 0