This is a read-only mirror of pymolwiki.org

Difference between revisions of "Ray Tracing"

From PyMOL Wiki
Jump to navigation Jump to search
(No difference)

Revision as of 21:32, 13 November 2007

Adjusting ray trace-image size

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!