From: John Stone (johns_at_ks.uiuc.edu)
Date: Tue May 10 2016 - 10:11:05 CDT

Hi,
  I would add that if the reason for running the external Tachyon was
to be able to set the resolution, you can normally do that in VMD with the
"display resize" command. That being said, I've started seeing that some
window managers are beginning to disallow window sizes from being larger
than the display, and to address this I'm probably going to have to add new
render command options that allow this to be overridden more universally
so that windowing systems and their window managers don't interfere with
script-based renderings like these.

Cheers,
  John Stone
  vmd_at_ks.uiuc.edu

On Tue, May 10, 2016 at 03:37:18PM +0200, Felipe Merino wrote:
> 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

-- 
NIH Center for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
http://www.ks.uiuc.edu/~johns/           Phone: 217-244-3349
http://www.ks.uiuc.edu/Research/vmd/