JW, To get the state of a multi-state system, do: get state or get state, objectName
See http://pymolwiki.org/index.php/State for a starting portal to other state-based info. You can similarly set a state: set state, stateNumber, object Hope this helps, -- Jason -- Jason Vertrees, PhD PyMOLWiki -- http://www.pymolwiki.org On Tue, Dec 15, 2009 at 6:06 PM, JW Feng <feng...@gene.com> wrote: > Hi, > > Once can see the current state of a multi-state object on the bottom right > corner of a PyMOL window. How do get get the state number programatically? I > cannot find a command that will return the current state of a multi-state > object. I need the state information in order to save the current state into > a SD file. Using "save test.sdf,selection=abc,state=-1" saves the first > state of an multi-state object even thought the documentation states that > using "state = -1" will save the current state. Using "save > test2.sdf,selection=abc,state=6" does correctly saves the current state, > which is 6. It would be great if some one can tell me how to get state via > command line or a pymol script. > > What is interesting is that "save test.pdb,selection=abc,state=-1" works. I > think there is a bug in saving to a sd file. It would > > Thanks, > > JW > > > ------------------------------------------------------------------- > JW Feng Ph.D. > Computational Chemistry and Cheminformatics > Genentech, Inc. > ------------------------------------------------------------------- > Tel: 650-225-4529 > Fax: 650-467-5155 > feng...@gene.com > ------------------------------------------------------------------- > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) > Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users > Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net > ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net) Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net