count_atoms
Count atoms matching a PyMOL selection to verify the expression before building a scene; an empty count signals an incorrect selection.
Instructions
Counts the atoms matching a selection.
Handy for checking a selection expression does what you think before building a scene on top of it — an empty count means the expression is wrong, which is otherwise invisible until the picture comes out blank.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selection | No | PyMOL selection string to count. | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |