From: Remya Ann (
Date: Tue May 10 2016 - 07:29:02 CDT

Im trying to render out an image using render Tachyon command in a .tcl file

set sel [atomselect top {name F}]
$sel set radius 1.3
set sel1 [atomselect top {name He}]
$sel1 set radius 1.261

axes location off
display shadows on
display ambientocclusion on
display resize 7000 7000
display reposition 3000 3000
render Tachyon [format file1.dat]
"/usr/local/lib/vmd/tachyon_LINUX" file1.dat -format TARGA -res 2000 2000
-o file1.tga

I get an error as follows for the above commands I use. But when I copy the
last line ("/usr/local/lib/vmd/tachyon_LINUX" file1.dat -format TARGA -res
2000 2000 -o file1.tga) and run it separately in the tk console window it

invalid command name "/usr/local/lib/vmd/tachyon_LINUX"
invalid command name "/usr/local/lib/vmd/tachyon_LINUX"
    while executing
""/usr/local/lib/vmd/tachyon_LINUX" file1.dat -format TARGA -res 2000 2000
-o file1.tga"
line 12)
    invoked from within
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 {source
    invoked from within
"interp eval $slave uplevel \#0 $args"
    (procedure "::tkcon::InterpEval" line 10)
    invoked from within
"EvalAttached [list source $fn]"
    (procedure "::tkcon::Load" line 11)
    invoked from within
    invoked from within
".tkcon.#tkcon#mbar.#tkcon#mbar#file invoke active"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list $w invoke active]"
    (procedure "tk::MenuInvoke" line 50)
    invoked from within
"tk::MenuInvoke .tkcon.#tkcon#mbar.#tkcon#mbar#file 1"
    (command bound to event)

I would like to know whether the render command (last line) can work in a
.tcl file as above without having to run in it in console window everytime.