Hi Chris,
I am having trouble with one of my range replicators and I suspect the issue has to do with variable scope. In my trials, I show 22 images, each of which has a trial made by a range replicator iterating along the variable ImageIndex. The problem is, now, I want to remove some images from the image set. In fact, I want to remove almost all of them. I was planning to do this by putting in a statement that says:
if (imageIndex > 11){
imageIndex = 4}
if ImageIndex <= 11{
imageIndex = 12}
So half the time it would show image 12 and half the time image 4, but I don’t lose the meaning of imageIndex = 4, which has always been a picture of an apple or imageIndex = 12 which has always been a picture of a house. The problem is, this simply doesn’t work. I keep on seeing the full gamut of images and I don’t know why.
The alternative way is to modify the range replicator to be in a range of 0 to 1, and remove all images from my folder except for the two I want. This would be OK but it will break my analysis script because my analysis script uses imageIndex to know which image is being shown. This is fixable but makes a mess.
Anyways, let me know if you have any ideas. If you are able to, before 1 oclock today because I’m going to move forward with the annoying version then unless I figure something out now.
Simon