Sort of -- search for the object name in:
print cmd.get_names(enabled_only=1)

From: Jacob Corn []
Sent: Wednesday, April 22, 2009 9:37 AM
To: Jacob Corn
Subject: Re: [PyMOL] select/deselecting objects via script?

OK, I'm feeling a little silly now... I found enable/disable (sorry for not rtfm'ing closely). But is there a way to get whether an object is currently dis/enabled?


On Apr 22, 2009, at 9:04 AM, Jacob Corn wrote:

I'd like to write a jiffy that binds the up and down arrow keys to move up/down the list in the object/selection pane. I'd like (for example) pressing the down arrow to equate to clicking the currently active object (thus hiding its representation) and clicking the next object down (thus showing it). That way, none of the various cartoon/stick/spheres are lost, but the current object disappears and the next one appears. What is the pymol command for choosing/un-choosing [sic] something in the right-hand panel?


Stay on top of everything new and different, both inside and
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today.
Use priority code J9JMT32.
PyMOL-users mailing list