'export all events' using scripts

Hi Francois,

When previewing a raw file, the brainstorm interface gives an option to ‘export all events’, or ‘export selected events’. I cannot find such option using scripts; it is possible to import events (‘Events-> Import from file’), but what about exporting?

Such functionality could enable a user to automatically read events, apply complex operations (removal of spurious triggers based on timing, custom trigger conditional statements, reaction times, etc) before processing the files.

Thank you!
Dimitrios

Hi Dimitrios,

There is an example on how doing that:
http://neuroimage.usc.edu/brainstorm/Tutorials/Scripting#Example:_Editing_events

The events structures is documented in the “Event markers / On the hard drive” section:
http://neuroimage.usc.edu/brainstorm/Tutorials/EventMarkers#On_the_hard_drive

Francois