Hi Tom On Fri, 15 May 2009 14:57:36 -0700, Thomas Stout <tst...@exelixis.com> wrote:
> What version of PyMOL does this work with? I've been trying your commands > with versions 1.1 and 1.2b and while PyMOL reports that the primitives have > been processed, nothing is written to the file "protein.pov" other than the > header info: > > camera {orthographic location <0.0 , 0.0 , 134.1048736572> > look_at <0.0 , 0.0 , -1.0> right -74.9812240601*x up 59.9849815369*y} > #default { finish{phong -1.000 ambient 0.500 diffuse 0.450 > phong_size 13 .750000}} > light_source{<4000.0001,4000.0001,9865.8951> rgb<1.0,1.0,1.0>} > plane{z , -206.0869 > pigment{color rgb<1.0000,1.0000,1.0000>} > finish{phong 0 specular 0 diffuse 0 ambient 1.0}} > #include "povray.inc" > > and povray.inc contains: > cmd.get_povray()[1] > > If I save a povray file with the GUI menu selection: File> Save Image As> > POV-Ray then I get everything written to disk. This occurs on both linux > and Windows. > > Am I missing something that would be more obvious if I had had more coffee > today? > > Thanks! > -Tom > > PS - There was a missing quotation mark: > open("povray.inc","w").write("cmd.get_povray()[1]) --> > open("povray.inc","w").write("cmd.get_povray()[1]") I think this is the real key! There was an extra quote. Try: open("povray.inc","w").write(cmd.get_povray()[1]) Cheers, Rob -- Robert L. Campbell, Ph.D. Senior Research Associate/Adjunct Assistant Professor Botterell Hall Rm 644 Department of Biochemistry, Queen's University, Kingston, ON K7L 3N6 Canada Tel: 613-533-6821 Fax: 613-533-2497 <robert.campb...@queensu.ca> http://pldserver1.biochem.queensu.ca/~rlc ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ PyMOL-users mailing list PyMOL-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pymol-users