This is a test version of Biostars. For the public version, visit https://www.biostars.org.
PyMOL: how to list all selection names?

Hello everyone,

A colleague asked me to use PyMOL and set up different colors for her selections ... there are around 200 selections, I never used PyMOL before and I can't find in the wiki how to list all the names of the selections in order to set them up with different colors by groups?

Does anyone know how to do it?

pymol

There's a lot of ways to interact with PyMOL and so from your terse post, I'm not clear where you want to access this?
I will say you can run the following at the PyMOL prompt in the PyMOL desktop GUI:

for x in cmd.get_names("all"): print(x)

That is based on 'Get Names' that returns a returns a list of object and/or selection names.

Related to that is 'Get object list'.

0 answers

No answers yet.

Log in to answer this question.