help > Overlay color selection
Showing 1-2 of 2 posts
Display:
Results per page:
Oct 29, 2020  08:10 PM | Daniel Leopold
Overlay color selection
Hi Chris,

Is there any functionality to modify the colors available for loaded overlays? I'm loading multiple overlays for results that have different directionality and wondering if I can use HEX, RGB, or another color scheme to define colors outside the 25 options/scales listed in the dropdown menu. No worries if not, but I didn't see information pertaining to this question elsewhere in the wiki.

Here's a scripting example of what I'm working with, in case it's helpful.

import gl
gl.resetdefaults()
gl.meshload("rh.inflated")
gl.overlayvisible(2,0)
gl.overlayvisible(3,0)

gl.overlayload('fs7converted_fs5_himask_fwhm5_lgi_cft3.1_nocov_rh_tfce_tstat_cfwep_c1.mgz')
gl.overlayminmax(4,1.301,4)
gl.overlaycolorname(4, 'Red')
gl.overlayinvert(4, 1)
gl.overlayload('fs7converted_fs5_himask_fwhm5_lgi_cft3.1_nocov_rh_tfce_tstat_cfwep_c2.mgz')
gl.overlayminmax(5,1.301,4)
gl.overlaycolorname(5, 'Blue')
gl.overlayinvert(5, 1)
gl.overlayload('fs7converted_fs5_inmask_fwhm5_lgi_cft3.1_nocov_rh_tfce_tstat_cfwep_c1.mgz')
gl.overlayminmax(6,1.301,4)
gl.overlaycolorname(6, 'Yellow [r+g]')
gl.overlayinvert(6, 1)
gl.overlayload('fs7converted_fs5_inmask_fwhm5_lgi_cft3.1_nocov_rh_tfce_tstat_cfwep_c2.mgz')
gl.overlayminmax(7,1.301,4)
gl.overlaycolorname(7, 'Green')
gl.overlayinvert(7, 1)

gl.shadername('mixmatch')
gl.viewsagittal(1)
gl.colorbarvisible(0)
gl.orientcubevisible(0)
gl.overlayadditive(0)
gl.savebmp('hiinMASKS_lgi_rh_lateral_nocov.png')


Many thanks,
Dan
Nov 11, 2020  02:11 PM | Chris Rorden
RE: Overlay color selection
See Github for a solution
  https://github.com/neurolabusc/surf-ice/issues/20