How to script MEG sensor display

I have a large number of data files and would like to script the generation of 3D .fig files showing the location of the channels in relation to the head. The path to create the graphic is in the topic, but I would also like to remove the channel labels and save the .fig file.

The Brainstorm scripting tutorial recommends using the Process Selection tool to generate starter scripts, but graphics don't seem to be an option.

Could you help me find the function within Brainstorm that I can call in a script?

Thank you for your help.

Hi @kmpatkru, welcome to the Brainstorm forum

The function to do so is view_channels_3d, however, the call will depend on the MEG device.

Since, it is not possible to know the MEG device from the provided information in the post. I suggest you to place a breakpoint in the in the first line of code for view_channels_3d, then call the plot from the GUI, and check the parameters that are being used.

You can find more information on how to find GUI calls in Brainstorm source code in the section Find interface callback functions of the Scripting tutorial:
https://neuroimage.usc.edu/brainstorm/Tutorials/Scripting