A crowded molecular scene can make a small task surprisingly time-consuming: locating the property models you want to inspect, or narrowing your search to models with a particular name or state. In SAMSON, the Node Specification Language (NSL) provides a compact way to describe which property model nodes you want to find.
This page focuses on one useful idea: property model attributes give you a focused vocabulary for filtering property models, without requiring you to search across every kind of node in the scene.
Start with the property model namespace
Property model attributes live in the propertyModel attribute space. Its short name is pm, and this attribute space matches only property model nodes. That makes pm a useful starting point when your task is specifically about property models rather than other scene elements.
For example, the documented expression pm.n "A" checks the name attribute against the quoted string "A". The page also gives pm.n "L*" as a name expression. Quotation marks matter: names are supplied as strings, not as bare words.
Use the attribute that matches your question
Property models inherit several attributes from the general node attribute space. The property-model prefix lets you use these inherited attributes in a property-model-specific query:
pm.n "A"— use the name attribute to narrow by a quoted name expression.pm.hornot pm.h— test the hidden attribute as true or false.pm.vornot pm.v— test the visible attribute as true or false.pm.hmandpm.om— refer tohasMaterialandownsMaterial, respectively.pm.selectedornot pm.selected— test whether a property model is selected.
The page also lists selectionFlag and visibilityFlag, with short names sf and vf. Their examples include pm.sf false, pm.sf, pm.vf false, and pm.vf. These are separate attributes from selected and visible; use the attribute name that matches what you intend to test rather than treating the terms as interchangeable.
Keep the long names handy
Most attributes on the page have short forms: name becomes n, hidden becomes h, and visible becomes v. Short forms can make repeated queries easier to read once you know them. But there is one notable exception: selected has no short name in the property model attribute space. Write it as pm.selected; the page specifically notes that the node-level short name s is not available here.
A practical approach is to begin with the property-model namespace, choose the attribute that corresponds to your question, and use the examples as a syntax check. If a query is hard to interpret later, spelling out the full attribute name can make its intent clearer. The reference lists possible values as well as short names, so it can also help prevent mistakes such as using a name string where a true/false value is expected.
These attributes are a small but useful way to make property-model searches more deliberate: name-based expressions help you focus on identifying information, while boolean attributes let you test states such as hidden, visible, or selected. For the complete attribute list and examples, see the SAMSON property model attributes reference.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
