A crowded molecular scene can make a simple task surprisingly time-consuming: finding the mesh you meant to inspect, checking whether it is visible, or confirming whether it has a material. When the scene contains many nodes, relying on names or visual appearance alone can lead to missed objects and extra clicking.
SAMSON’s Node Specification Language (NSL) provides a way to describe mesh nodes by their attributes. The mesh attribute space uses the short name me and matches only mesh nodes. That gives you a useful starting point: use me when your goal is to work with meshes rather than nodes of other types.
Start with the question you need to answer
The mesh attribute reference includes inherited node attributes for names, visibility, selection, and material-related properties. Here are several expressions from the reference that can help turn common scene-checking questions into a specific query:
- Is this mesh visible? Use
me.vto test thevisibleattribute, ornot me.vto test for meshes that are not visible. - Is it hidden? The
hiddenattribute can be written asme.h; its negated form isnot me.h. - Does it have a material? Use
me.hmforhasMaterial, orme.omforownsMaterial. - What is it called? Match a name with a quoted string, for example
me.n "A". The reference also givesme.n "L*"as an example. - Is it selected? Use
me.selected, ornot me.selectedfor meshes that are not selected.
Don’t confuse similar-looking attributes
The reference lists both visible and visibilityFlag, as well as both selected and selectionFlag. They are separate attributes in the mesh attribute space, so choose the one that matches the question you are asking rather than assuming the names are interchangeable. The short forms are v for visible, vf for visibilityFlag, and sf for selectionFlag. For example, the page shows me.vf false and me.sf false as valid expressions.
One small syntax detail can prevent a frustrating false start: selected has no short name in the mesh attribute space. Although the node attribute space has a short name for it, the mesh reference explicitly says to write me.selected rather than trying a short form such as me.s.
A simple way to build a reliable check
Begin with the attribute that directly describes the problem. If a mesh seems to have disappeared, check me.v and me.h. If you are looking for a particular object, try its quoted name with me.n. If the question concerns material assignment, check me.hm or me.om. Keeping these checks focused makes it easier to spot a mismatch between what you expect and what the attribute expression is testing.
Also remember that these attributes are inherited from the general node attribute space. The mesh page is therefore a mesh-specific entry point to familiar node properties, with the important constraint that the me space matches mesh nodes only.
For the complete list of mesh attributes and examples, see the SAMSON mesh attribute reference.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
