When a molecular scene contains several animations, it can be hard to narrow your attention to the one you need. A name may be unfamiliar, or an animation may be hidden or not currently visible. SAMSON’s Node Specification Language (NSL) lets you query animation nodes by attributes such as name, visibility, and selection state—so you can make your search more specific instead of relying on a broad guess.
This guide focuses on the animation attribute space. Its short name is an, and it matches animation nodes. The attributes below are inherited from the general node attribute space, so they describe properties shared with other kinds of nodes as well.
Start with the attribute that matches your question
Think about what you know about the animation you want to find:
- Do you know part of its name? Use
an.nameor its short form,an.n. - Are you checking whether it is hidden or visible? Use
an.hidden(short forman.h) oran.visible(short forman.v). - Do you need its selection state? Use
an.selected. - Are you checking a flag rather than the corresponding state attribute? Use
an.selectionFlag(short forman.sf) oran.visibilityFlag(short forman.vf).
Choosing the attribute deliberately makes a query easier to read and helps avoid mixing up related—but separately named—properties.
Use names to narrow a search
Names are written as quoted strings. For example, an.n "A" searches using the name value A, while an.n "L*" is another documented example. The quoted form matters: it marks the name value as a string. If you are unsure which names are available, start with a recognizable fragment or pattern from the naming convention you use, then refine the search based on what you find.
Check visibility and hidden state separately
For a query about visibility, the documented short forms are an.h for hidden and an.v for visible. A bare boolean attribute checks for the true value: an.v is the example for visible animations, and an.h for hidden ones. To look for the opposite boolean value, use not: not an.v selects animations that are not visible, and not an.h those that are not hidden.
The page also lists visibilityFlag as its own attribute, with examples an.vf and an.vf false. Since visible and visibilityFlag are distinct attributes in the reference, use the one that matches the property you intend to query rather than treating their names as interchangeable.
Remember the selection-name exception
Most of the listed inherited attributes have a short form, but selected is an exception in the animation attribute space: it has no short name there. Use an.selected or not an.selected to query the selection state. In contrast, the separate selectionFlag attribute does have the short form sf, as in an.sf false or an.sf.
A small, reliable query workflow
- Identify what you know: a name, a visibility state, or a selection state.
- Choose the corresponding attribute and use the
anprefix to target animation nodes. - For a boolean condition, use the bare attribute for the true case or the documented
falseornotform when appropriate. - Keep the query focused on one useful clue at first. That makes it easier to understand why a result matches and to adjust the search.
These examples provide a compact starting point for inspecting animation nodes without confusing names, visibility states, and flags. For the full attribute reference, see the SAMSON animation attributes documentation.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
