Hi. I've run into a slight pymol UI problem with cgo objects and I'm
wondering if I should be doing something differently or if it's a pymol
idiosyncrasy.
Here's a script:
from pymol.cgo import *
from pymol import cmd
one = [ SPHERE, 0.0, 0.0, 0.0, 1.0 ]
two = [ SPHERE, 2.0, 0.0, 0.0, 1.0 ]
cmd.load_cgo(one, 'one')
cmd.load_cgo(two, 'two')
cmd.hide('cgo', 'two')
When I load it into pymol (using the run command on the command line), the
'one' sphere appears. I expected to be able to click on the gray 'two' item
on the right side of the pymol GUI and have the two sphere appear. But this
doesn't work. Instead, I have to click on 'S' next to the two indicator,
drag down to 'cgo' and then the sphere appears. After this initial step I
can turn the display of sphere two on and off with the 'two' toggle just
like I can do from the outset with the 'one' toggle/button.
Should the 'two' button toggle right away? If not, is there some pymol
command I can issue to enable that?
I hope this is clear enough. Please let me know if there's not enough
detail. I'm doing this with pymol 0.98 on Mac OSX 10.3.9. I get the same
behavior in both the Aqua pymol and the X11 hybrid.
Regards,
Terry