[Chimera-users] copy cmd in nogui script

Elaine Meng meng at cgl.ucsf.edu
Fri Feb 9 08:03:08 PST 2007


Hi Randy,
It is my understanding that the GUI is used to render the image, thus 
it is not possible to save images when in nogui mode.  (Others, please 
correct me if I've gotten this wrong!)
Best,
Elaine
-----
Elaine C. Meng, Ph.D.                          meng at cgl.ucsf.edu
UCSF Computer Graphics Lab and Babbitt Lab
Department of Pharmaceutical Chemistry
University of California, San Francisco
                      http://www.cgl.ucsf.edu/home/meng/index.html


On Feb 9, 2007, at 7:46 AM, Randy Heiland wrote:

> What cmd should I invoke in a --nogui script to copy the rendered image
> to a file?
>
>> From the interactive viewer cmd line, I can successfully execute 'copy
> file foo.png png'; however, when trying to execute the following:
>
> % chimera --nogui cmd:dostuff
> where 'dostuff' is:
> open 1yc4
> color byelement #0
> copy file foo.png png
>
> I get:
> Fetching 1yc4 from web site www.rcsb.org
> Done fetching 1yc4; verifying...
> Opening 1yc4...
> 1 model opened
> Opened 1yc4 containing 1 model, 1890 atoms, and 427 residues
> Rendering high resolution image...Error while processing cmd:dostuff:
> AttributeError: '_chimera.NoGuiViewer' object has no attribute
> 'pilImages'
> (see reply log for Python traceback info)
> Traceback (most recent call last):
>   File "/home/heiland/chimera/build/share/__main__.py", line 59, in ?
>     value = chimeraInit.init(sys.argv)
>   File "CHIMERA/share/chimeraInit.py", line 298, in init
>     prefixableType=1)
>   File "CHIMERA/share/chimera/__init__.py", line 1217, in open
>   File "CHIMERA/share/Midas/ChimeraExtension.py", line 28, in func
>     #        lswdir = os.path.split(thisdir)[0]
>   File "CHIMERA/share/Midas/midas_text.py", line 91, in
> processCommandFile
>   File "CHIMERA/share/Midas/midas_text.py", line 60, in makeCommand
>   File "CHIMERA/share/Midas/midas_text.py", line 542, in doCopy
>   File "<string>", line 1, in ?
>   File "CHIMERA/share/Midas/__init__.py", line 795, in copy
>   File "CHIMERA/share/chimera/printer.py", line 705, in saveImage
> AttributeError: '_chimera.NoGuiViewer' object has no attribute
> 'pilImages'
>
>
> thanks, Randy
>
> _______________________________________________
> Chimera-users mailing list
> Chimera-users at cgl.ucsf.edu
> http://www.cgl.ucsf.edu/mailman/listinfo/chimera-users




More information about the Chimera-users mailing list