In molecular modeling, clarity and precision often depend on how efficiently one can manage nodes within a molecular design platform. SAMSON’s Node Specification Language (NSL) provides a robust way to handle and filter nodes using logical expressions. Among the various attribute spaces, the light attribute space is specifically designed for working with light nodes, ensuring greater efficiency and organization. If you are keen to optimize your workflow and manage molecular representations with ease, understanding light attributes is key.
The light attribute space (short name: li) is dedicated solely to light nodes in SAMSON. These attributes allow you to specify the visibility, name, selection status, and more. Below, we will cover some of the inherited attributes in the light space and how they can serve you in practical scenarios.
Key Attributes in the Light Space
1. Visibility and VisibilityFlag
The visible (short name: v) and visibilityFlag (short name: vf) attributes allow you to control which light nodes should be visible in your molecular model. For instance:
li.v: Filters light nodes that are currently visible.not li.v: Filters light nodes that are hidden.li.vf false: Marks light nodes as non-visible.
These attributes are particularly useful when you need to focus on specific parts of a model or export a clean visual render without unwanted details.
2. Name Attribute
The name attribute (short name: n) allows you to filter light nodes by their name. For example:
li.n "A": Selects light nodes named “A”.li.n "L*": Selects light nodes with names starting with “L”.
Leveraging the name attribute can be incredibly handy when working in large systems where nodes are logically named. It helps you quickly isolate custom light nodes for better control and organization.
3. Selection Attributes
The selected and selectionFlag (short name: sf) properties are valuable for toggling or querying whether a particular light node is part of a current selection:
li.selected: Checks nodes that are selected.li.sf false: Filters light nodes for which theselectionFlagis set tofalse.
Use these selection filters when preparing your node-based workflows, ensuring you only modify the intended nodes during operations or simulations.
4. Hidden Attribute
The hidden attribute (short name: h) determines whether a light node is considered hidden. Examples include:
li.h: Retrieves hidden light nodes.not li.h: Retrieves light nodes that are not hidden.
Fine-grained control over the hidden status of light nodes can assist in debugging or reviewing node-based details without disrupting the overall environment.
Conclusion
The light attribute space in SAMSON’s NSL offers a powerful way to manage and customize light nodes, particularly as models grow in complexity. By mastering visibility switches, names, and selection filters using their corresponding attributes, you can enhance your molecular workflows with minimal effort.
To dive deeper into the light attribute space, visit the full documentation page: https://documentation.samson-connect.net/users/latest/nsl/light/
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. You can download SAMSON at https://www.samson-connect.net.
