Sean,

 

Please see the examples/devel/cgo08.py demonstration script:

 

http://pymol.svn.sourceforge.net/viewvc/pymol/trunk/pymol/examples/devel/cgo08.py?view=markup

 

Cheers,

Warren

 

 


From: Sean Law [mailto:magicmen@hotmail.com]
Sent: Wednesday, April 08, 2009 6:53 AM
To: pymol-users@lists.sourceforge.net
Subject: [PyMOL] CGO Cones

 

Hi,

I noticed that version 1.1 is said to have "Cone representation available as cgo" so I downloaded the windows binary and tested it out but I haven't been able to get it to work.  Any clarification on how to get this to work would be greatly appreciated.  A sample code is written below.

Sean

##############################

from pymol.cgo import *    # get constants
from math import *
from pymol import cmd
 
def cone()
 
    cone=[CONE, 0.0, 0.0, 0.0, 5.0, 5.0, 5.0 , 5.0, 1.0, 1.0, 1.0]
    cmd.load_cgo(cone,'cone')
    return
 
cmd.extend("cone",cone)


Internet Explorer 8 makes surfing easier. Get it now!