From: Felipe Merino (felipe.merino_at_mpi-muenster.mpg.de)
Date: Tue May 10 2016 - 08:37:18 CDT

Hi,

The correct syntax would be:

render Tachyon $outName "/usr/local/lib/vmd/tachyon_LINUX" -aasamples 12
%s -format TARGA -o %s.tga.

If you can it is actually way faster to use the internal tachyon renderer.

render TachyonInternal $outName.ppm

By the way, all these commands are available to you if you turn on the
logging to console in VMD and then do one trial from the GUI.

Felipe

On 10/05/16 14:29, Remya Ann wrote:
> Hi,
> 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 works.
>
>
>
> 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"
> (file
> "/home/samdavid/REMYA/2d/rcut0.5/25/cluster/af0.8/ep9/25_af0.8_ep9_1069055/chain.tcl"
> line 12)
> invoked from within
> "source
> /home/samdavid/REMYA/2d/rcut0.5/25/cluster/af0.8/ep9/25_af0.8_ep9_1069055/chain.tcl"
> ("uplevel" body line 1)
> invoked from within
> "uplevel #0 {source
> /home/samdavid/REMYA/2d/rcut0.5/25/cluster/af0.8/ep9/25_af0.8_ep9_1069055/chain.tcl}"
> 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
> "::tkcon::Load"
> 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.
>
> Regards,
> Remya