When working with molecular models, clarity and organization are paramount. Molecular modelers often encounter the challenge of managing and organizing nodes effectively during complex projects. SAMSON’s Node Specification Language (NSL) offers a solution with its label attributes feature, designed to bring precision to how labels are handled in molecular designs.
In SAMSON, label attributes belong to the label attribute space, abbreviated as la. These attributes apply exclusively to label nodes, providing tools to modify their behavior. Let’s dive into the details of some of the key label attributes and how they can make your molecular modeling projects more efficient.
Key Label Attributes
| Attribute Name | Short Name | Possible Values | Examples |
|---|---|---|---|
| hidden | h |
true, false |
la.hnot la.h |
| name | n |
strings in quotes | la.n "A"la.n "L*" |
| selected | — | true, false |
la.selectednot la.selected |
| selectionFlag | sf |
true, false |
la.sf falsela.sf |
| visibilityFlag | vf |
true, false |
la.vf falsela.vf |
| visible | v |
true, false |
la.vnot la.v |
Each of these attributes brings unique functionality. For example, the hidden attribute determines whether a label is hidden, while name adds identification flexibility. The visibilityFlag and visible attributes are particularly useful for controlling the appearance of labels in models. Whether you are toggling visibility, filtering labels by name, or selecting specific label groups, these tools can simplify and streamline your workflow.
Inherited Behavior
Interestingly, these label attributes are inherited from the general node attribute space. They carry over similar functionalities but are uniquely tailored for label nodes. For instance, the selected attribute allows you to manipulate label selection states, while the selectionFlag attribute helps refine label grouping based on selection.
If you’re wondering how to get started, begin with simple expressions like la.h to target hidden labels or not la.v to filter out non-visible labels. With practice, you’ll find these tools indispensable for managing large molecular designs.
Learn more at the official documentation page.
SAMSON and all SAMSON Extensions are free for non-commercial use. You can download SAMSON at https://www.samson-connect.net.
