StyleBallAndStick
StyleBallAndStick(
quality= 2 ,
sphere_geometry= 'Instance' ,
sphere_radius= 0.3 ,
bond_split= False ,
bond_radius= 0.3 ,
bond_find= False ,
bond_find_scale= 1.0 ,
color_blur= False ,
shade_smooth= True ,
)
Style class for Style Ball and Stick
Parameters
quality
int
A lower value results in less geometry, with a higher value meaning better looking but more dense geometry
2
sphere_geometry
Any
Show spheres as a Point Cloud , Instances of a mesh Icosphere, or realised Mesh instances of an Icosphere. Point cloud is best for performance and should definitely be used if rendering in Cycles.
'Instance'
sphere_radius
float
Scale the vdw_radii attribute before setting the radius for the spheres
0.3
bond_split
bool
Split apart double and triple bonds visually
False
bond_radius
float
Set the radius for the generated bonds in Angstroms
0.3
bond_find
bool
Find possible bonds for the selected atoms based on a distance search. Unselected atoms maintain any bonds they already have. Bonds that are found are all treated as single bonds
False
bond_find_scale
float
Scale the VDW radii of the atoms when searching for bonds
1.0
color_blur
bool
Interpolate between colors when enabled. When disabled the faces will take their color from their corresponding atom without interpolating
False
shade_smooth
bool
Apply smooth shading to the created geometry
True
Methods
update_style_node
Update the Blender node inputs with values from this style’s attributes.
update_style_node
StyleBallAndStick.update_style_node(node_style)
Update the Blender node inputs with values from this style’s attributes.