For molecular modelers, customization of visual representations is crucial. Whether you’re analyzing intricate molecular interactions or preparing publication-quality visuals, SAMSON’s render preset attributes within the Node Specification Language (NSL) offer a versatile way to adjust properties for enhanced visualization. This blog post dives into these attributes, their functionalities, and how they can be used effectively.
What Are Render Preset Attributes?
Render preset attributes are part of the renderPreset attribute space in the NSL. They are specifically designed to match render preset nodes, offering control over visualization-specific parameters. Whether referencing an attribute by its name or short name, these attributes streamline your workflow for molecular representations.
How Do These Attributes Work?
These attributes can be leveraged to control the rendering of presets in SAMSON. For example:
- name (
n): This attribute allows you to define or filter render preset nodes by their names, expressed as strings. Examples include: rp.n "A": Targets nodes with the exact name “A”.rp.n "L*": Uses wildcards to target nodes starting with “L”.- selected: This boolean attribute determines whether a node is selected. With no short name, this attribute allows expressions like:
rp.selected: Filters selected nodes.not rp.selected: Filters deselected nodes.- selectionFlag (
sf): This boolean attribute is used to indicate a selection flag. Examples include: rp.sf false: Targets nodes where the selection flag is set to false.rp.sf: Targets nodes with a true selection flag.
Refer to the table below for an overview:
| Attribute name | Short name | Possible values | Examples |
|---|---|---|---|
| name | n |
strings in quotes | rp.n "A"rp.n "L*" |
| selected | true, false |
rp.selectednot rp.selected |
|
| selectionFlag | sf |
true, false |
rp.sf falserp.sf |
Inherited Attributes
The elegance of SAMSON lies in its modular approach. Attributes in the renderPreset space are inherited from the broader node attribute space:
- name: Directly linked to node.name, allowing streamlined use of node identifiers.
- selected: Inherited from node.selected, with a distinction that the short name
sis not used here. - selectionFlag: Drawn from node.selectionFlag, making it consistent across contexts.
Conclusion
For molecular modelers looking to customize visualizations with precision, the renderPreset attribute space in SAMSON’s NSL is an invaluable tool. By mastering these attributes, you can enhance your research workflow and present data more effectively.
To learn more, visit the detailed documentation page at https://documentation.samson-connect.net/users/latest/nsl/renderPreset/.
SAMSON and all SAMSON Extensions are free for non-commercial use. You can download SAMSON at https://www.samson-connect.net.
