Hi Yang, there is not a way to pass it from the tksurfer command line. What I've done in the past is to write another script to which I pass these types of arguments. This scripts constructs the tcl script then runs tksurfer with the appropriate arguments.
doug
On 4/26/11 4:58 PM, Yang Liu wrote:
Hi all,
I want to save the tiffs of different views automatically. I am trying to use tcl script to do it. My problem is that I need to pass the file's name that is being displayed in the tksurfer window to the tiff file that I want to save to.
For example,
I am running tksurfer -f $surface_file -tcl my_script.tcl
In my_script.tcl, I have the following command:
save_tiff ${file_name}-lateral.tiff
How can I pass the $surface_file in my command to ${file_name} in my_scripts.tcl?
Thanks.
Yang
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer