For molecular modelers, keeping a clear and organized representation of molecular designs is crucial. Whether you are managing countless atoms, structures, or visualizing results, managing what is visible and what isn’t can be the key to efficient workflows. SAMSON, the integrative molecular design platform, offers a set of tools to fine-tune visibility at the molecular node level through the Node Specification Language (NSL), particularly with presentation attributes.
What Are Presentation Attributes?
In SAMSON, presentation attributes operate in the presentation (or pr) attribute space, specifically designed to address the visualization of presentation nodes. These attributes fine-tune what gets displayed or hidden in a molecular design, allowing for complete control over how molecular models are viewed and interacted with. This is especially helpful when working with complex models or when preparing your data for communication or focused analysis.
Key Visibility Attributes Explained
Let us explore some of the essential visibility-related attributes available in the pr attribute space and how you can leverage them:
hidden(pr.h): This attribute allows you to determine whether a node is hidden or visible. Setting it totruehides the node, andfalseensures it is displayed. Examples of usage include:pr.hornot pr.h.visibilityFlag(pr.vf): Similar in its intent but different in implementation, this flag specifically controls a node’s visibility state. Usingpr.vf false, for example, disables visibility.visible(pr.v): You can also use thevisibleattribute to make nodes directly visible (pr.v) or specifically ensure they are hidden (not pr.v).
Why Is This Useful?
Imagine working on a large protein structure where only a portion is relevant for the analysis at hand. Instead of manually filtering through layers and representations, you can efficiently toggle visibility for specific nodes using the attributes above. This not only reduces screen clutter but also allows you to focus on what matters most.
For example:
- When presenting a subset of a model to colleagues, use
pr.handnot pr.hto selectively include or exclude components. - To quickly assess hidden features, toggle
pr.vdynamically and investigate details without permanently modifying your setup.
Learn More
The NSL framework is immensely powerful and provides multiple levels of customization for both newcomers and advanced users. Explore the full potential of presentation attributes and how they inherit functionalities from node attributes directly within the documentation. Unlock better control over your molecular projects today.
SAMSON and all SAMSON Extensions are free for non-commercial use. Get started now by downloading SAMSON at https://www.samson-connect.net.
