Scripting users guide for BrainVoyager:
Scripting Reference for BrainVoyager 23 (February 2024)
This guide contains the following chapters:
1. Introduction
2. The BrainVoyager Script Editor
3. BrainVoyager Scripting Commands (API)
4. Creating scripts with dialogs
5. JavaScript language reference
Scripting reference for BrainVoyager 22.2.1 (October 2021)
Notes for different BrainVoyager versions:
- CorrectMotion() is described as using trilinear interpolation, but in some versions of BrainVoyager uses SINC interpolation (f.e. BV20.2; in BV20.4 it is Trilinear-SINC). The text will be changed in the next version of the Reference. To be certain about the type of interpolation, use CorrectMotionEx().
- If the temporal high-pass filter is applied via the graphical user interface of BrainVoyager, the resulting filename ('*THPGLM*') does not contain 'LTR', while via scripting, it does. However, when comparing the files (binary), they are the same.
Note for BrainVoyager 20.4: The description for CreateVTCInMNISpace() in the Reference Manual distributed with the BrainVoyager installer contains one argument too many (the ACPC trf file). For the correct version, see the Manual above.
Note for BrainVoyager 20: There seems to be an issue with the function AutoTransformToIsovoxel(). This has been reported and is awaiting a fix. Also, the combination of Windows 10 and BrainVoyager 20 seems to give problems for scripting of motion correction. This is caused by the default movie handler on Windows 10 trying to open the motion correction movie. A temporary solution could be to use CorrectMotionEx() and set the movie parameter to 'false' (parameter 5). With thanks to Tobias Meissner. .
For a guide to start with scripting in BrainVoyager, please refer to page Guide to start with (Java)scripting.