Group: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
== Overview ==
== Overview ==
The [[Group]] command creates or updates a "group" object.  The grouped objects are collected underneath a '''+''' sign in the object tree (see images).
The [[Group]] command creates or updates a "group" object.  The grouped objects are collected underneath a '''+''' sign in the object tree (see images).
[[Group]] is tremendously helpful with multi-state or multi-structure sessions.  Wildcards work great, for example:
<source lang="python">
# put all of objState into the group "ensemble".
group ensemble, objState*
</source>


<gallery>
<gallery>
Line 29: Line 35:
== See Also ==
== See Also ==
[[ungroup]] [[order]] [[select]]
[[ungroup]] [[order]] [[select]]
[[Category:Commands]]

Revision as of 18:10, 27 April 2009

Overview

The Group command creates or updates a "group" object. The grouped objects are collected underneath a + sign in the object tree (see images).

Group is tremendously helpful with multi-state or multi-structure sessions. Wildcards work great, for example:

# put all of objState into the group "ensemble".
group ensemble, objState*

Usage

group name, members, action

Example

group efHand, 1cll 1ggz 1sra

# allow addition and removal from the group
group efHand, open
# disallow addition/removal from the group
group efHand, close

Notes

Group objects can usually be used as arguments to commands. It can be processed as a group or as a selection, in which case all the atoms from all objects in the group will be used.


See Also

ungroup order select