> One quick question... how do I tell PyMOL to draw a cylinder (or bond)
> of a given radius between two positions X,Y,Z and X', Y',Z'?
(From Python...)
from pymol.cgo import *
from pymol import cmd
obj = []
obj.extend( [ CUSTOM_CYLINDER,
1.0, 2.0, 3.0, # XYZ 1
4.0, 5.0, 6.0, # XYZ 2
2.0, # Radius
1.0, 1.0, 1.0, # RGB Color 1
1.0, 1.0, 1.0, # RGB Color 2
1, 1, # End caps (0=none, 1=flat, 2=round)
] )
cmd.load_cgo(obj,'my_cgo')
Cheers,
Warren
--
mailto:wa...@de...
Warren L. DeLano, Ph.D.
Principal Scientist
DeLano Scientific LLC
Voice (650)-346-1154
Fax (650)-593-4020
|