help > Script: adding subcortical components at the same time
Showing 1-2 of 2 posts
Display:
Results per page:
Nov 10, 2022  11:11 AM | Teresa Baggio
Script: adding subcortical components at the same time
Dear Chris,
I am trying to use the scripting section in order to load several subcortical components at the same time.
This is an example:

import gl
gl.resetdefaults()
gl.meshload('Left-Caudate.obj')
gl.meshload('Right-Hippocampus.obj')
gl.meshload('Left-Hippocampus.obj')
gl.meshload('Right_Amygdala.obj')

But, if I run the script only the first component (in this case the Left Caudate) is loaded. How can I solve this?

Thank you very much
Teresa
Nov 10, 2022  04:11 PM | Chris Rorden
RE: Script: adding subcortical components at the same time
The meshload() function resets the scene and loads the primary background image. If you wish to view multiple meshes, use meshlod() for the first mesh and overlayload() for subsequent images. The Scripting/Templates/subcortical menu item illustrates this method.