[solved] Inline Python Script Capabilities
I feel that OpenSesame primitives don't expose the functionality I am looking for in the experiment I am developing. However, being able to drop into Python should resolve that, providing the following are possible:
Time logging at various points within an item: I want to show an item with multiple states, which the user advances through by mouse clicks, where I want to record the time spent on each state. (AFAIK, I can't do this with an OpenSesame loop because the number of states available, each time this item is shown, will be variable.) Is it possible to programatically log a time on-demand?
When I have progressed through all the states in said item, I want to then proceed to the next item (which will just be a regular OpenSesame item); again by mouse click. What command is used to advance to the next item?
Will I be able to open a SQLite database from the OpenSesame file pool? I feel like
experiment.get_fileshould do the job -- and
import sqlite3appears to work -- but I'm interested to know if anyone has tried this.
I'm sure I'll have more questions (sorry!)...