pymol-open-source icon indicating copy to clipboard operation
pymol-open-source copied to clipboard

Create selection by state

Open AlessioDelConte opened this issue 3 years ago • 1 comments

Hello, I was wondering if it is possible to create a selection from the python API that changes with the state of the object. In my case this will be very useful because I'm trying to select residues that are in contact (calculated with another software) in a certain state, but I would prefer not to create one selection for every state of the object.

Alessio

AlessioDelConte avatar Jan 21 '22 09:01 AlessioDelConte

Hi Alessio, That's literally what I've been implementing in the last couple of days and will open an issue about it. It would be nice to have access to the internal event scheduler and update the selections based on the state directly. I worked around it by creating an update function which takes care of the proper selection for a given frame, but I need to manually call it each time I select a new frame ... Best, Cyril

cyril-schroeder-ox avatar Sep 23 '22 10:09 cyril-schroeder-ox