Changes between Initial Version and Version 1 of Ticket #7888, comment 6


Ignore:
Timestamp:
Oct 27, 2022, 10:04:31 AM (3 years ago)
Author:
Eric Pettersen

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7888, comment 6

    initial v1  
    11The problem is that the selector being using (~nucleic) is atom-based (rather than model-based), but the hide function only has access to the results of the selection (atoms, residues, models) rather than the original selector.  Since the selector selects no atoms, the function has to guess what level to apply the hide to, and it guesses model-level, which is usually right when no atoms get selected but is not right in this case.
    22
    3 Since a preset cannot possibly intersect the spec with a particular model number, I think the right approach is to explicitly tell the hide command what level to hide, i.e. the works:
     3Since a preset cannot possibly intersect the spec with a particular model number, I think the right approach is to explicitly tell the hide command what level to hide, i.e. this works:
    44
    55open 2gku