A crowded molecular scene can make a simple task surprisingly error-prone: finding the mesh you want, checking whether it is hidden, or separating selected meshes from the rest. When the scene contains many kinds of nodes, a mesh-specific query can help you focus on mesh nodes instead of searching through everything by eye.
SAMSON’s Node Specification Language (NSL) provides a dedicated mesh attribute space, with the short name me. It matches mesh nodes. The practical benefit is that you can express a focused question about meshes using their names, visibility, selection, or material-related attributes.
Start with the state you need to inspect
If a mesh seems to have disappeared from the view, try checking the visibility-related attributes separately:
me.vmatches meshes whosevisibleattribute is true.not me.vmatches meshes whosevisibleattribute is false.me.handnot me.hquery thehiddenattribute.me.vf falseandme.vfquery thevisibilityFlagattribute.
These are distinct attributes in the reference, so it is useful to query the one that corresponds to the state you are investigating rather than treating the terms as interchangeable. The page lists the possible values for each as true and false.
Find meshes by name
When a mesh has a recognizable name, name matching can be quicker than scanning a long scene tree. The attribute is name, with the short form n. The reference shows exact-string and pattern-style examples:
me.n "A"me.n "L*"
For example, if you are trying to locate a mesh with a name beginning with the letter L, the second expression is a useful starting point. Keep the name in quotes, as shown in the examples.
Check selection without guessing
Selection-related queries help you distinguish meshes that are currently selected from those that are not:
me.selectedmatches selected meshes.not me.selectedmatches meshes that are not selected.me.sfandme.sf falsequeryselectionFlag.
One detail worth remembering: selected is available in the mesh attribute space, but it has no short name there. Use me.selected, not an assumed abbreviation.
Inspect material-related attributes
If your question is about whether a mesh has or owns a material, the reference provides two separate attributes: hasMaterial (hm) and ownsMaterial (om). You can query them with me.hm and me.om. Their presence gives you a way to check each property directly instead of relying on appearance alone.
A practical workflow is to begin with one question—name, visibility, selection, or material—and use the corresponding mesh attribute. This keeps the query readable and makes it easier to understand why a mesh matches. The examples above are individual expressions from the reference; consult the NSL guidance before combining expressions or assuming how a particular interface applies query results.
For the complete attribute list and additional details, see the SAMSON mesh attributes reference.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
