Hi,

I was curious, and tried this out.

Seems that "hide" means roughly the same as setting the representation to "none".

"Enable/disable" are the equivalents to clicking on the "name-button".

So, if you change the test script to have "cmd.disable('two')" at the end instead of 'hide', then it seems to do what you wanted it to do...

gilleain torrance

On 10 Oct 2005, at 22:12, Terry Jones wrote:

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


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
PyMOL-users mailing list
PyMOL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pymol-users



Reply via email to