PyMOL: how to list all selection names?
0
0
Entering edit mode
10 months ago
Ondina ▴ 100

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 • 563 views
ADD COMMENT
0
Entering edit mode

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'.

ADD REPLY

Login before adding your answer.

Traffic: 2117 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6