Ray Tracing

From PyMOLWiki
Revision as of 21:08, 30 September 2008 by Inchoate (talk | contribs)
(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


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,


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


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