vmd.selection.add_macro

vmd.selection.add_macro()

Create a new atom selection macro. A macro is a word or words that expand to be a much larger selection string, for example ‘noh’ is a built-in macro that expands to ‘not hydrogen’

Parameters:
  • name (str) – Macro name
  • selection (str) – Atom selection that macro will expand to