Styles
Style Nodes
Styles are defined by python dataclasses in the styles.py
. Data in these classes will be used to update Molecular Nodes Styles. They can be updtes with custom styles by overriding one or more of the fields.
# dev note: the data is types and immutable
class BallStickStyle():
int = 2
quality: bool = True
as_mesh: float = 0.3
sphere_radii: bool = False
bond_split: bool = False
bond_find: float = 0.3
bond_radius: bool = False
color_blur: bool = True
shade_smooth:
from dataclasses import replace
= replace(BallStickStyle(), "bond_radius" = 10)
bs = replace(BallStickStyle(), **{"bond_radius": 10, "sphere_radii" = 10}) bs