A crowded molecular scene can make a simple task surprisingly frustrating: you want to inspect one mesh, but several objects look similar, or you are unsure whether a mesh is hidden, invisible, or simply not selected. In SAMSON, the Node Specification Language (NSL) can help you narrow the scene to mesh nodes using attributes such as name, visibility, selection, and material ownership.
This guide focuses on a practical goal: making mesh queries easier to read and less likely to match the wrong kind of node. Mesh attributes belong to the mesh attribute space, whose short name is me. That prefix matters: the page specifies that this attribute space matches only mesh nodes.
Start with the mesh prefix
Use me before an attribute when you want to filter meshes. For example, me.h checks the hidden attribute, and me.v checks visible. These short forms can keep frequently used expressions compact. If you prefer readability, the full attribute names are also available, as in me.visible.
That scope is useful when a scene contains many kinds of nodes. Instead of relying on a general node query and sorting through unrelated results, the mesh prefix makes your intent explicit: you are working with mesh nodes.
Check visibility without guessing
When a mesh seems to have disappeared, inspect its visibility-related attributes directly. The documented examples include:
me.v— match meshes whosevisibleattribute is true.not me.v— match meshes whosevisibleattribute is false.me.h— match meshes whosehiddenattribute is true.not me.h— match meshes whosehiddenattribute is false.me.vf false— check thevisibilityFlagattribute against false.
visible, hidden, and visibilityFlag are listed as separate attributes. Avoid treating their names as interchangeable: use the particular attribute that matches the question you are investigating. The reference page lists their possible values, but does not define additional relationships between them.
Separate selection from selection flags
Selection can also be checked in more than one way. The page shows me.selected and not me.selected for the selected attribute, and me.sf false or me.sf for selectionFlag. These are distinct attributes in the reference, so a careful query should name the one you actually want to inspect.
One detail can prevent a confusing typo: the mesh form of selected has no short name. In particular, the page says it does not inherit the node-level short name s. Write me.selected rather than assuming a shorter mesh expression is available.
Narrow the results by name or material
If several meshes are present, a name query can help focus your search. Names take strings in quotes; the reference gives me.n "A" and me.n "L*" as examples. You can also inspect material-related attributes: me.hm checks hasMaterial, while me.om checks ownsMaterial. The page lists both as boolean attributes, so expressions such as not me.hm can be used to check for a false value.
A useful troubleshooting habit is to change one part of a query at a time: first scope it to meshes with me, then add the relevant name, visibility, selection, or material attribute. This makes it easier to see which condition is responsible for the matches, rather than building a complicated expression before you know what each part returns.
For the complete mesh attribute reference and its examples, see the SAMSON mesh NSL documentation.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
