For molecular modelers, efficiency in organizing, selecting, and visualizing molecular nodes is essential. The Note Attributes feature in SAMSON’s Node Specification Language (NSL) provides a powerful approach to streamline these tasks. Let’s explore how note attributes work, their capabilities, and why they can be pivotal in improving your modeling workflows.
What Are Note Attributes?
Note attributes in SAMSON are a specialized set of attributes within the note attribute space (with the short name nt). They are specifically designed to match and manipulate note nodes. These attributes can refine targeting and filtering, allowing users to manage molecular notes in their projects with remarkable precision.
Inherited Attributes: Note attributes inherit their definitions and functionality from more general node attributes. However, the note-specific namespace ensures that they can be applied exclusively to notes.
Key Note Attributes
Below is a concise overview of the most critical note attributes—which are intuitive to use and greatly enhance efficiency when working on molecular designs:
- hidden (
h): Determines whether a note is hidden. Possible values:trueorfalse. - name (
n): Refers to the name of the note as a quoted string (e.g.,"A"or"L*"). - selected: Indicates whether a note is selected. This attribute does not have a short name. Values:
trueorfalse. - selectionFlag (
sf): Marks whether a note has a selection flag enabled. Values:trueorfalse. - visibilityFlag (
vf): Determines whether a visibility flag is active. Values includetrueandfalse. - visible (
v): Indicates whether a note is visible in the current view. Values:trueorfalse.
Examples of Usage
The specificity of note attributes is a valuable tool for complex molecular designs. Let’s break down a couple of practical examples:
- Filtering visible notes: To target only visible notes, you can use
nt.v, whilenot nt.vensures you focus on non-visible nodes. - Naming with patterns: Searching for notes with a specific name, such as
"A", would involvent.n "A". Wildcards are supported too, for example,nt.n "L*"to find all notes starting with the letter L.
By mastering such syntax, you can quickly organize and manipulate molecular nodes in your project workspace.
Conclusion
Note attributes in SAMSON’s NSL empower molecular modelers to manage and interact with note nodes effectively. Whether you’re filtering for visibility or matching specific patterns, these attributes provide robust functionality that saves time and enhances productivity. To delve deeper into note attributes, visit the official SAMSON documentation page.
SAMSON and all SAMSON Extensions are free for non-commercial use. You can get SAMSON at https://www.samson-connect.net.
