* Chris Rife <chris.r...@vanderbilt.edu> [2002-05-10 10:47] wrote:
> I am making some stereo images and would like to put in some labels that 
> will move with the model. When I use the "label" command, the labels are 
> okay but they disappear with ray tracing. Is there any way around this, 
> other than adding in the labels in an image editing program?

You can use the cgo text (line or cylinder versions) as I mentioned in
my reply about drawing the xyz axes, but be warned that the labels
rotate with you molecule, so getting them oriented perpendicular to the
view may be a pain (unless there is something I've missed).

Warren's example from a previous reply of his:

# draw text using cgo
from pymol import cmd
from pymol.cgo import *
from pymol.vfont import plain

cgo = []

axes = [[2.0,0.0,0.0],[0.0,2.0,0.0],[0.0,0.0,2.0]]

pos = [0.0,0.0,0.0]
wire_text(cgo,plain,pos,'Hello World',axes)

pos = [0.0,-3.0,0.0]
cyl_text(cgo,plain,pos,'Hello Universe',0.10,axes=axes)

cmd.set("cgo_line_radius",0.03)
cmd.load_cgo(cgo,'txt')
cmd.zoom("all",2.0)


Cheers,
Robert

-- 
Robert L. Campbell, Ph.D.               http://biophysics.med.jhmi.edu/rlc
r...@k2.med.jhmi.edu                                    phone: 410-614-6313
Research Specialist/X-ray Facility Manager
HHMI/Dept. of Biophysics & Biophysical Chem., The Johns Hopkins University
    PGP Fingerprint: 9B49 3D3F A489 05DC B35C  8E33 F238 A8F5 F635 C0E2

Reply via email to