Python option to adjust overlay depth
JeffreyWardman opened this issue · comments
Jeffrey Wardman commented
Is it possible to include the following option:
gl.overlaydepth(depthPct) -> depth percentage of overlay
Chris Rorden commented
I assume you want to change the overlayDepth
property of the render shader. For shader properties, you can call them by name:
import gl
gl.resetdefaults()
gl.loadimage('spm152')
gl.overlayload('spmMotor')
gl.minmax(1, 4, 4)
gl.opacity(1,10)
gl.shaderadjust('overlayDepth', 0.2)
Jeffrey Wardman commented
Thanks @neurolabusc! That's exactly what I was after. Cheers!
PindongChen commented
That's exactly what I was need, which could be added in the command.md.