°
Names can be negated with an exclamation mark '!'
An exclamation mark can be used to negate the name or number that follows immediately afterwards. Alternatively you can use the
'not' operator
to negate an entire selection block.
Examples:
ColorAtom !CA,Blue
Color all except CA atoms blue
DelRes !Glu
Delete all residues exept Glu
DelObj !5
Delete all objects except 5
ColorAtom Element !C,Green
Color all except carbon atoms green
BallRes SecStr !Helix
Display all residues outside helices as balls