count_atoms
Count atoms matching a PyMOL selection to validate the selection expression before building a scene. Ensures the expression is correct rather than discovering a blank image later.
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 |