schrodinger / pymol-open-source

Open-source foundation of the user-sponsored PyMOL molecular visualization system.
https://pymol.org/
Other
1.15k stars 275 forks source link

Unexpected behavior doing state-specific distance-based selection #272

Open shaoqx opened 1 year ago

shaoqx commented 1 year ago

Dear PyMol team,

I want to select atoms dynamically in a trajectory by judging the distance in every state individually. I found current selection algebra seems cant achieve so, as sele (state 1 and id 10) around 4 and state 1 still give atoms based on distances measured from all states. My workaround now is to split states and select them one by one using things like sele (obj_0001 and id 10) around 4 and obj_0001 I wonder if there is any way to do this easier. Thank you!

All the Best, QZ