help > RE: Scripting show dark/hide bright commands in the gui
Apr 14, 2021  01:04 PM | Chris Rorden
RE: Scripting show dark/hide bright commands in the gui
If you want to find an in-built Surfice Python function, you can use the Scripting/Python/Help menu item which will list all the functions with a brief explanation. In your case:

overlayextreme (built-in function):
overlayextreme(layer, mode) -> Behavior of values beyond min..max (-1 automatic, 0 hide dark & bright, 1: hide dark, 2 hide bright, 3 show dark & bright)

This command is illustrated in the script below:

import gl
gl.resetdefaults()
gl.azimuthelevation(70, 15)
gl.meshload('BrainMesh_ICBM152.rh.mz3')
gl.overlayload('motor_4t95vol.nii.gz')
gl.overlayminmax(1,2,8)
gl.overlayextreme(1,0)

Threaded View

TitleAuthorDate
nagedem Apr 14, 2021
RE: Scripting show dark/hide bright commands in the gui
Chris Rorden Apr 14, 2021
nagedem Apr 14, 2021