AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
January 03, 2017 01:57AM
Thanks, rick! This is really cool!

In case someone else is also interested in similar functionality, here is my current approach:
After opening multiple afni controllers, I save my multi-controller layout (as well as underlay, overlay, color, threshold, etc. associated with each controller) by:
Define Datamode > Misc > Save Layout > layout01.script (N.B.: file name must contain "script")

And then reload this layout by:
$ load_layout.py layout01.script

With the help of a short custom python script "load_layout.py":
-------------------------------------------------------------------------------------
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys, subprocess

if __name__ == '__main__':
afni_script = sys.argv[1]
with open(afni_script) as f:
lines = f.readlines()
com = '; '.join([line.strip() for line in lines if not line.startswith('//')]);
subprocess.call('afni -com "CLOSE_WINDOW A.axialimage; \
CLOSE_WINDOW A.sagittalimage; CLOSE_WINDOW A.coronalimage" \
-com "{0}"'.format(com), shell=True)
-------------------------------------------------------------------------------------

For more information, check
plugout_drive as a demo plugout as well as a tool
"-com" option of afni
All available commands
Subject Author Posted

Is it possible to open multiple linked afni GUIs programmatically?

herrlich10 December 29, 2016 09:23PM

Re: Is it possible to open multiple linked afni GUIs programmatically?

rick reynolds December 30, 2016 08:19AM

Re: Is it possible to open multiple linked afni GUIs programmatically?

herrlich10 January 03, 2017 01:57AM

Re: Is it possible to open multiple linked afni GUIs programmatically?

rick reynolds January 03, 2017 08:04AM