The defaults element specifies global default values for attributes in the script.
defaults.finishPage
defaults.fontHeight
defaults.postTrialPause
defaults.preTrialPause
defaults.windowCenter
defaults.windowDecThreshold
defaults.windowDecUnit
defaults.windowHitDuration
defaults.windowIncThreshold
defaults.windowIncUnit
defaults.windowMaxCenter
defaults.windowMinCenter
defaults.windowOffset
defaults.windowOnset
defaults.windowWidth
defaults.name
defaults.typeName
None.
The default element provides a convenient way to specify global settings that apply throughout the entire script. For example, if a script contains multiple text elements that use a 12 point Arial font, the font can be specified in the defaults element and each text element will automatically use that font. This is much more convenient than specifying the font repeatedly for each text element. If the local element redefines a default attribute, the local setting takes precedent over the default setting.
The following sets the default screen color to blue, font to Arial, and input device to mouse.
<default>
/ screenColor = (0,0,255)
/ fontStyle = ("Arial", 14pt, true)
/ inputDevice = mouse
</default>