This is a read-only mirror of pymolwiki.org

Ray Tracing

From PyMOL Wiki
Revision as of 03:53, 28 March 2014 by Bell (talk | contribs) (6 revisions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Adjusting ray trace-image size

Much, much more at Ray.

The pymol ray tracer can generate an image of any size.

ray height,width

Example:

ray 3000,2400
png filename.png

Ray tracing maps

For better quality maps with a white background.

set ray_trace_fog,0
set ray_shadows,0
set antialias,1
ray 1600,1200
png img.png

(This will take quite a while...)

CGO label orientation

You could use the cmd.rotate and cmd.translate to position the labels, but it is likely to be somewhat painful. If I'm not mistaken, the rotation will always be about and axis through the origin and so you may need to translate the label into the correct position.

Thus if you have your label in an object called 'text', you could do,

  cmd.rotate(axis='x',angle=20.,object='text')

and repeat this with different angles, until you get the orientation correct. Then use:

  cmd.translate(vector='[1.,2.,3.]',object='text')

(using the appropriate vector, of course!) to position the label. Not ideal, but if it is sufficiently important, it can be done!