From: Daniel Holloway (deholloway_at_gmx.com)
Date: Mon Jun 06 2011 - 08:50:17 CDT

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