I'm trying to change the contents of an item-element but always get the errormessage:
"Unable to initialize <picture animal> item number 1. Verify the item exists and is correctly defined."
Example:
<item Animal> / 1 = "dog.png" </item>
<picture animal> / items = Animal </picture>
<trial dog>
/ stimulustimes = [0=animal] / timeout = 1000
</trial>
<trial cat>
/ ontrialbegin = [item.Animal.setitem("cat.png",1)]
/ stimulustimes = [0=animal] / timeout = 1000
</trial>
<trial cat2>
/ ontrialbegin = [setitem(item.Animal,"cat.png",1)]
/ stimulustimes = [0=animal] / timeout = 1000
</trial>
Trial "dog" is working. For the other two i get the error. The help-page for the item-element lists "setitem" as a function, but not the other way round. Does this mean it is not possible to do this? Manipulating the picture-element would be a bad option for me because i have several of those referencing the same set of items.