Hi Jamie,
I suspect what is happening is that you need to select "set every repeat" rather than "constant" in the popup button next to the "N vertices" field. This is what tells PsychoPy to get a fresh number from the Shape variable on each iteration of the loop.
Because (I'm guessing) it is set to "constant", the polygon is instead being created at the very beginning of the script before the Shape variable has even been defined, so it is trying to use the literal text "$Shape" for the number of vertices rather than an actual number.
PsychoPy will get better shortly at pointing out these problems (assuming this is the cause for you).
Regards,
Michael
--
Michael R. MacAskill, PhD 66 Stewart St
Research Director, Christchurch 8011
New Zealand Brain Research Institute NEW ZEALAND
Research Fellow,
michael....@nzbri.org
Te Whare Wānanga o Otāgo, Otautahi Ph:
+64 3 3786 072
University of Otago, Christchurch
http://www.nzbri.org/macaskill