Thanks!
Apparently I'd forgotten that fetch defaults to doing a zoom (which it
obviously has to do to make things look reasonable), so I thought I didn't
need to play with the view. Too much non-PyMOL work rots the brain, it
seems.
Cheers,
-Michael
On Sun, Jul 15, 2012 at 5:35 AM, Thomas Holder
Hi Michael,
you need to reset the camera view.
def writeSurfaceValue(objname, wrlname='/tmp/tmp.wrl',
ptsname='/tmp/tmp.pts', pdbname='/tmp/tmp.pdb'):
cmd.hide('everything')
cmd.show('surface',objname)
view = cmd.get_view()
cmd.set_view([1.0, 0.0, 0.0, 0.0, 1.0, 0.0,
I finally got back to this, and I'm still having some trouble. The surface
I write out seems to be offset from what I'm viewing in PyMOL. I define the
following functions:
def getIndexedFaceSet(wrlname):
f = file(wrlname)
for line in f:
if 'geometry IndexedFaceSet {' in line:
Hi all,
Tsjerk- Thanks. I'm not sure how I missed that, given that it's even
mentioned on the wiki on the surface page under the clear heading
"Exporting Surface/Mesh Coordinates to File" :-|. (
http://www.pymolwiki.org/index.php/Surface#Exporting_Surface.2FMesh_Coordinates_to_File).
I don't know
Hi,
Another way:
There is an undocumented API called 'dump', which can
dump coordinates of isomesh/isosurface to a file.
For mesh, it dumps a list of vertex coordinates, which
can be rendered as GL_LINE_STRIP.
For surface, it dumps a list of pairs of a vertex coordinate
and its vertex normal vect
not expressly made on behalf of the NIAID by one of its representatives.
From: Tsjerk Wassenaar [mailto:tsje...@gmail.com]
Sent: Monday, June 11, 2012 12:46 PM
To: Michael Lerner
Cc: pymol mailinglist
Subject: Re: [PyMOL] writing out the surface
Hi Michael,
The answer used to be "you can wri
Hi Michael,
The answer used to be "you can write out the surface as mesh in vrml or
povray format, from which you can extract the vertices". I think it's still
the proper answer.
Cheers,
Tsjerk
On Jun 11, 2012 5:26 PM, "Michael Lerner" wrote:
Hi all,
If I have a surface representation, is th