help
help > RE: Set light position in script--possible bug?
May 7, 2018 11:05 PM | Chris Rorden
RE: Set light position in script--possible bug?
If you choose The View/Scripting menu to show the Scripting window,
you will see that the Scripting Form has a menu named "Insert" - if
you choose a command from here it will insert an appropriate
function into your script and report a note about the function at
the bottom of the window. I think you want
the shaderlightazimuthelevation, which will change the
location of the illumination. With the classic Pascal script, this
would be:
BEGIN
shaderlightazimuthelevation(-21, 21);
END.
With the pre-release and future releases
https://github.com/neurolabusc/MRIcroGL/releases/tag/v1.0.20180402
you can also write your script in Python, just make sure your script includes the key phrase "import gl". In this case, the script would be
import gl
gl.shaderlightazimuthelevation(-21, 21)
BEGIN
shaderlightazimuthelevation(-21, 21);
END.
With the pre-release and future releases
https://github.com/neurolabusc/MRIcroGL/releases/tag/v1.0.20180402
you can also write your script in Python, just make sure your script includes the key phrase "import gl". In this case, the script would be
import gl
gl.shaderlightazimuthelevation(-21, 21)
Threaded View
Title | Author | Date |
---|---|---|
ajack | Sep 5, 2017 | |
Chris Rorden | May 7, 2018 | |