Hi Graham,
Kevin can answer the ones I can't, but I usually use env variables and the tcl $env(ENV_NAME) to get at them. The following variables are define by tksurfer:
$subject $home $hemi
among a bunch of others.
Bruce
On Fri, 13 Apr 2007, Graham Wideman wrote:
Folks:
Basic scripting questions:
- When you launch FS from command line and provide a -tcl command to invoke
a tcl script, how do you supply arguments to that script (or is that even possible)?
FWIW, I tried things along the lines of:
set myvar [lindex $argv 1]
... and this gives an error about "no such variable".
- Once a script is running, what variables can it look at to find out:
Current subject id Path to current subject Details about currently loaded surfaces: especially right or left
- What assumptions, if any, can a script rely on as to current directory?
Thanks,
Graham
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer