Wait this isn't working either.
Before, I used the visual module, which had the object sphere, which I could define attributes for, such as x and y position.
I created a square array of particles like so:
alldisks = 
for x in range(0,nlat):
for y in range(0,nlat):
disk=sphere(pos=(x*s,y*s), radius = r, color=color.red)
disk.id = (x,y)
then i chose a disk from the array at random using: p = choice(alldisks) Then later I could differentiate between the disk i had chosen from the otherdisks using: if disk.id != p.id I was just wondering how I could initialise these two objects without the visual module?