open-discussion > RE: MRIcroGL Visualization demos
Mar 5, 2020  06:03 PM | Chris Rorden
RE: MRIcroGL Visualization demos
1.) Be aware that the Python language requires you to indent the for loops with white space.
  https://www.geeksforgeeks.org/statement-indentation-and-comment-in-python/
2.) Can you make sure you are using the latest version (v1.2.20191219) and if issues persist tell me the operating system
  https://github.com/rordenlab/MRIcroGL12/releases
3.) does the script Scripting/Templates/Explode show an animation. If so, you could adapt for your usage
4.) Below is an example, notice that the lines after the for statement are indented

import gl
ksteps = 12
ktime= 100
gl.resetdefaults()
gl.loadimage('spm152')
for x in range(1, ksteps):
  gl.azimuthelevation(0+(x*12),10)
  gl.wait(ktime)

Threaded View

TitleAuthorDate
Mikolaj Pawlak Oct 6, 2019
Andrew Sun Feb 29, 2020
warrenfelsh Jan 11, 2021
RE: MRIcroGL Visualization demos
Chris Rorden Mar 5, 2020
Andrew Sun Mar 6, 2020
Chris Rorden Mar 6, 2020
Andrew Sun Mar 6, 2020
Chris Rorden Mar 6, 2020
Andrew Sun Mar 10, 2020
Chris Rorden Mar 10, 2020
Chris Rorden Oct 7, 2019
Mikolaj Pawlak Oct 7, 2019