A crowded molecular scene can make a simple task surprisingly frustrating: finding the presentation nodes that are visible, hidden, selected, or named in a particular way. Instead of clicking through items one at a time, SAMSON’s Node Specification Language (NSL) lets you describe the presentation nodes you want to match.
This is especially useful when you are inspecting a large model or revisiting a scene and need a repeatable way to narrow your attention. The presentation attribute space has the short name pr and matches only presentation nodes. That scope matters: these expressions are for identifying presentation nodes, not a general search across every kind of node.
Start with what you can see
To match presentation nodes whose visible attribute is true, use pr.v. To match those whose visible attribute is false, use not pr.v. The full attribute name is also available as pr.visible.
These two expressions make a useful first pass when you are trying to locate the part of a scene that is currently visible—or, conversely, identify presentation nodes that are not. They describe matching criteria; they do not, by themselves, say that a node’s visibility will be changed.
Keep related attributes distinct
The reference also lists hidden, visibilityFlag, selected, and selectionFlag. Their short forms include h for hidden, vf for visibilityFlag, and sf for selectionFlag. For example, pr.h and pr.vf refer to different named attributes, while pr.v refers to visible. The page documents them separately, so use the attribute that matches the question you are asking rather than assuming these names are interchangeable.
For example, if you want to inspect nodes matching the documented visibility criterion, start with pr.v. If you are specifically interested in the visibility flag, use pr.vf instead. Likewise, pr.selected checks the selected attribute, while pr.sf checks selectionFlag. The selected attribute has no short name in this attribute space, so write it out in full.
Use names to narrow the search
Presentation nodes inherit the name attribute from the node attribute space. You can refer to it as pr.n or pr.name, with string values written in quotes. The reference gives examples such as pr.n "A" and pr.n "L*". These examples are handy when a scene contains many similarly organized items: a name-based search gives you another way to focus your inspection instead of relying only on visibility or selection.
A practical way to work
-
Decide what you need to find: visible nodes, hidden nodes, nodes matching a name, or nodes with a particular selection-related attribute.
-
Choose the corresponding attribute explicitly—for example,
visibleversusvisibilityFlag. -
Use the short form when it is available, or the full attribute name when that is clearer. Both make the target attribute recognizable in a query.
-
Check the scope: the
prprefix means the expression is matching presentation nodes.
Thinking in terms of precise attributes can save time and reduce guesswork, especially when a scene has many presentation nodes. It also makes a search easier to repeat: you can return to the same criterion later rather than relying on memory of which items you clicked.
For the complete list of presentation attributes and examples, see the SAMSON presentation attributes reference.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
