Find the Mesh That Disappeared: A Practical NSL Checklist

A mesh can be easy to lose track of in a busy molecular scene. You may be looking for a particular object, checking which meshes are currently visible, or trying to narrow down a selection without disturbing other node types. In SAMSON, the mesh attribute space gives you a focused way to query mesh nodes by properties such as visibility, hidden state, selection, and name.

The useful starting point is the namespace: me. Mesh attributes are defined in the mesh attribute space, and that space matches only mesh nodes. This helps keep a mesh-focused search focused, rather than querying the broader node space when your immediate question concerns meshes.

Start with the visibility question

To query meshes whose visible attribute is true, use me.v. To query the opposite state, use not me.v. The full attribute name works too: me.visible and not me.visible. The short name is a convenient option when you are writing or reading queries frequently.

The reference also lists hidden, abbreviated h. You can query it with me.h, or use the full form me.hidden. Because the documentation lists visible and hidden as separate attributes, it is useful to query the one that matches the question you are trying to answer instead of assuming one expression is a substitute for the other.

There is also visibilityFlag, abbreviated vf. For example, me.vf and me.vf false are documented expressions. That gives you another visibility-related property to inspect when a simple visible-state query does not answer what you need. The reference identifies these attributes and their possible values, but does not define additional rules about how they interact, so treat them as distinct queryable properties.

Use selection attributes carefully

When the question is about selection, the mesh-specific expression is me.selected; its negative form is not me.selected. There is an important detail here: unlike some inherited node attributes, selected has no short name in the mesh attribute space. In particular, do not assume that me.s is the shorthand for this mesh attribute.

The mesh space also exposes selectionFlag, with short name sf. Its examples include me.sf and me.sf false. Since selected and selectionFlag are listed separately, it is clearer to query the one you specifically need instead of treating the names as interchangeable.

Narrow the search by name or material

If several meshes are present, name can help make a query more specific. Use me.n "A" or the full attribute form me.name "A" to look for a name value written in quotes. The documentation also gives me.n "L*" as an example. These examples are useful reminders that name values are entered as quoted strings; the reference does not specify further pattern-matching rules.

Two material-related inherited attributes are available as well: hasMaterial (hm) and ownsMaterial (om). Their documented example forms include me.hm and me.om. They can help you ask a material-related question about mesh nodes without leaving the mesh attribute space.

A small, repeatable troubleshooting routine

  1. Begin with the mesh namespace so the query targets mesh nodes: me.

  2. Check the state relevant to your problem: for example, me.v or not me.v for visibility, and me.h for hidden state.

  3. If you are investigating visibility flags, query me.vf or me.vf false as a separate check.

  4. If you need to identify a particular mesh, use a quoted name expression such as me.n "A".

  5. For selection-related checks, use me.selected or me.sf, keeping the two attributes distinct.

This approach turns a vague “where did that mesh go?” moment into a set of precise questions. You can check one documented attribute at a time, use the short names where available, and avoid guessing at the meaning of similarly named states.

For the complete attribute list and examples, see the SAMSON mesh attribute reference.

Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.

Comments are closed.