From: Ajasja Ljubetič (ajasja.ljubetic_at_gmail.com)
Date: Mon Jun 06 2011 - 09:32:09 CDT

Hi,

you can try escaping the spaces as well
C:\\Program\ Files\\University\ of\ Illinois\\VMD\\tachyon_WIN32.exe

Or you can create tachyon.cmd somewhere in you path and put this line inside

@"C:\Program Files\University of Illinois\VMD\tachyon_WIN32.exe" %*

Basically you just pass on all the arguments. Then you can call

render Tachyon scene.dat "tachyon -aasamples 12 %s -format BMP -res 1500
1200 -o %s.bmp"

Best regards,
Ajasja
On Mon, Jun 6, 2011 at 15:50, Daniel Holloway <deholloway_at_gmx.com> wrote:

> Hi all,
>
> I'm running VMD under Win-XP and have been using Tachyon to render some
> figures for publication. Things work fine from the 'File Render Controls'
> box with a post-render command like this:
>
> "C:\Program Files\University of Illinois\VMD\tachyon_WIN32.exe" -aasamples
> 12 %s -format BMP -res 1500 1200 -o %s.bmp
>
> I'd like to be able to do the same from within a .vmd script file but I'm
> getting errors.
>
> With the command:
>
> render Tachyon scene.dat "C:\Program Files\University of
> Illinois\VMD\tachyon_WIN32.exe" -aasamples 12 %s -format BMP -res 1500 1200
> -o %s.bmp
>
> I get:
>
> Info) Rendering current scene to 'scene.dat' ...
> Info) Tachyon file generation finished
> Info) Executing post-render cmd 'C:Program FilesUniversity of IllinoisVMD
> achyon_WIN32.exe -aasamples 12 scene.dat -format BMP -res 1500 1200 -o
> scene.dat
> .bmp' ...
> 'C:Program' is not recognized as an internal or external command,
> operable program or batch file.
> Info) Rendering complete.
> Info) render Tachyon scene.dat C:Program FilesUniversity of IllinoisVMD
> achyon_W
> IN32.exe -aasamples 12 %s -format BMP -res 1500 1200 -o %s.bmp
>
> As it looked like a syntax problem with the backslashes I tried:
>
> render Tachyon scene.dat "C:\\Program Files\\University of
> Illinois\\VMD\\tachyon_WIN32.exe" -aasamples 12 %s -format BMP -res 1500
> 1200 -o %s.bmp
>
> but still got an error:
>
> Info) Rendering current scene to 'scene.dat' ...
> Info) Tachyon file generation finished
> Info) Executing post-render cmd 'C:\Program Files\University of
> Illinois\VMD\tac
> hyon_WIN32.exe -aasamples 12 scene.dat -format BMP -res 1500 1200 -o
> scene.dat.b
> mp' ...
> 'C:\Program' is not recognized as an internal or external command,
> operable program or batch file.
> Info) Rendering complete.
> Info) render Tachyon scene.dat C:\Program Files\University of
> Illinois\VMD\tachy
> on_WIN32.exe -aasamples 12 %s -format BMP -res 1500 1200 -o %s.bmp
>
> It now looks like a problem with the spaces in the directory names. Apart
> from substituting underscores everwhere, how do I put this right? Any
> suggestions would be gratefully received!
>
> Many thanks,
>
> Dan Holloway
>
>