Notes can be useful reminders in a molecular model, but as a project grows, they can also become visual clutter. The challenge is not just hiding a note: it is being able to describe which notes you want to find, whether by name, visibility, or selection state. SAMSON’s Node Specification Language (NSL) provides a compact way to express those criteria for note nodes.
For note attributes, the attribute-space prefix is nt. It matters because this space matches only note nodes. That makes it a useful starting point when you want to work with annotations without accidentally describing other kinds of nodes.
Start with the question you are trying to answer
Before writing an expression, decide what you need to distinguish. Are you looking for a note by its name? Notes that are visible, or not visible? Notes with a particular selection state? The note attribute reference lists these options, along with their short names and examples.
- Find notes by name: The full attribute is
name, with short namen. The documentation shows expressions such asnt.n "A"andnt.n "L*". Use the name expression as a starting point when you know the label you are looking for. - Check visibility: The full attribute is
visible, shortened tov. The examples arent.vandnot nt.v. These give you a direct way to describe visible and non-visible notes. - Check hidden state: The
hiddenattribute has short nameh. The reference examples includent.handnot nt.h. - Check selection-related attributes: You can use
selected, orselectionFlagwith short namesf. Examples includent.selected,not nt.selected,nt.sf, andnt.sf false.
Mind the similar names
Some attributes are easy to confuse because their names sound related. The reference lists hidden and visible separately, and likewise lists selected and selectionFlag separately. Treat them as distinct attributes when you write an expression; do not assume that one is simply another spelling of the other.
There is also a small but useful detail about shorthand: selected is inherited from the node attribute space, but it does not have the short name s in the note space. The other listed short forms include n for name, h for hidden, sf for selectionFlag, vf for visibilityFlag, and v for visible. When an expression does not behave as expected, checking the attribute name and its supported shorthand is a good first step.
A practical way to use the reference
Think of each expression as a precise description, not as a change to the note itself. For example, if you are trying to locate a note called “A,” the documented name expression is nt.n "A". If your immediate question is simply whether notes are visible, begin with nt.v or not nt.v. Keeping the first check focused makes it easier to tell which attribute is helping you narrow down the notes you care about.
When you need more than one criterion, consult the broader NSL syntax documentation rather than guessing how to combine expressions. The note reference is a concise attribute map: it tells you which properties are available for notes and provides valid example forms, while the NSL pages explain the wider language.
Learn more in the SAMSON note attributes reference.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
