From: John Stone (johns_at_ks.uiuc.edu)
Date: Sat Mar 06 2021 - 12:41:54 CST

Hi Carlos,
  I had time to quickly read the code for the ViewMaster plugin, and
indeed it looks for the TMPDIR enviroment variable and uses that to
determine where to save temporary files, when it is set, it is checking
for TMPDIR and using it when set:
    if { [info exists env(TMPDIR)] } {
        set tmpdir $env(TMPDIR)
    } else {
        set tmpdir /tmp
    }

A bunch of other parts of VMD also use TMPDIR to direct its choice of
temporary file location, which is why I asked in the previous email, but
clearly this plugin is also directly using it, so I belive this is the
reason you're getting the behavior you're seeing.

Best,
  John

On Fri, Mar 05, 2021 at 10:12:50AM -0600, John Stone wrote:
> Carlos,
> I'm wondering if you have the environment variable TMPDIR set,
> if so, is it set to "C:"?
>
> Best,
> John
>
> On Fri, Mar 05, 2021 at 10:56:07AM -0500, Carlos Simmerling wrote:
> > hi all,
> > I'm trying to use viewmaster with VMD for WIN64, version 1.9.4a51.
> > when I click on "create new" I get this error message in the console.
> > How do I set the working directory for viewmaster? It keeps trying to
> > write to c:.
> > I tried changing the location in the viewmaster menus "save as" and "set
> > session file" and it didn't seem to help.
> > thanks
> > carlos
> > vmd > pwd
> > E:/carlos/Desktop
> > vmd > Info) Rendering current scene to 'c:viewmaster.16648.ppm' ...
> > ERROR) Could not open file c:viewmaster.16648.ppm in current directory for
> > writing!
> > Info) Rendering complete.
>
> --
> 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/

-- 
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/