When a molecular scene contains many objects, a small targeting mistake can make a cleanup or inspection task frustrating: the query may match the wrong kind of node, or a visibility-related attribute may not be the one you intended. SAMSON’s Node Specification Language (NSL) lets you describe property model nodes using the propertyModel attribute space, abbreviated pm. Knowing what that scope includes—and how its inherited attributes are named—makes queries easier to read and check.
Start with the right scope
The pm attribute space matches only property model nodes. That is useful when you want your expression to be specific rather than broadly describing nodes of other kinds. For example, pm.n "A" uses the property model name attribute to look for a name expressed as a quoted string. The documentation also gives pm.n "L*" as an example. Treat the quoted text as part of the NSL expression; the reference page does not define additional details about how name patterns are interpreted.
Scope is the first thing to check when a query returns fewer results than expected. A property model query is not a general query for every object in the scene: it is constrained to property model nodes. Conversely, if your task is specifically about property models, using pm makes that intention visible in the expression.
Use the attribute that matches the task
The property model attribute space inherits several attributes from the general node attribute space. Their short forms can make expressions compact, but the full names are often easier to scan while you are composing or reviewing a query.
- Name:
pm.name "A"can be written with the short name aspm.n "A". - Visible:
pm.visibleorpm.vselects according to the visible attribute;not pm.vis the documented inverse example. - Hidden:
pm.hiddenorpm.his a separate available attribute, also shown withnotfor the false case. - Selected:
pm.selectedis available, and can be negated withnot pm.selected. Unlike the node attribute space, this property model attribute has no short name. - Flags:
pm.selectionFlaghas the short namesf, andpm.visibilityFlaghas the short namevf. The reference includes examples such aspm.sf falseandpm.vf false.
One practical safeguard is to avoid treating similarly named attributes as interchangeable. The reference lists visible, hidden, and visibilityFlag separately, just as it lists selected and selectionFlag separately. If your goal is to query a particular state or flag, use that exact attribute name rather than assuming another one means the same thing.
A quick query-checking routine
- Confirm the node type. Use the
pmscope when you intend to match property model nodes. - Choose the attribute deliberately. For example, decide whether your expression should refer to
visibleorvisibilityFlag. - Begin with the full attribute name. It is easier to recognize at a glance. Once the expression is clear, use a documented short name such as
v,h, orsfif brevity helps. - Check the value syntax. The boolean attributes accept
trueorfalse; names are shown as strings in quotes. The examples include both an explicit false value and a bare boolean attribute expression. - Review negation carefully. The documented form is
not pm.v, for example. Keeping the attribute and its negation together makes the intended condition easier to inspect.
This approach helps turn a vague scene-cleanup goal into a readable query: define the node scope, select the precise attribute, and use the value form shown for that attribute. It also makes expressions easier for teammates to understand when they encounter them later.
For the complete attribute table and inherited attribute references, see the property model attributes documentation.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
