Changelog

v520.3.0 - 2026-11-23

Added

  • Select Residue Class and Color Residue Class nodes select and color amino acids as positively charged, negatively charged, polar uncharged, special case or hydrophobic. #1193
  • Selenocysteine (SEC) has a res_name value of 20, so it is no longer read as an unknown residue.
  • Canvas.pixel_size gives the size of one rendered pixel in nanometres for scale bars, and canvas.camera.orthographic and canvas.camera.ortho_scale set up an orthographic camera with an exact scale.
  • compositor.illustrate(id_pass=...) and an ID Outline panel on the Illustrate node draw lines between the regions of an ID pass, such as chains, which depth outlines cannot do on all-atom styles.
  • mol.hide(), mol.show() and mol.hidden leave atoms out of every style, while calculations still see them. Molecule.load() and fetch() take hide=, such as hide="element H", and the same option is the Hidden field in the Attributes panel and the import dialog, where it starts as water. hidden is reserved as a selection name.
  • Atoms with a boolean hidden attribute are left out of every style, and are not used in what the style computes. Calculations and other nodes still see every atom.
  • Grids.add_style() adds a density style with its inputs and material, and Grids.load() takes the same material and style inputs, such as threshold.
  • Molecule.add_style() warns when an all-atom style is used on a CA or P trace model, which renders as sparse beads.
  • The MN_MAX_RENDER_SAMPLES environment variable caps the samples of every render from a Canvas, for builds that only need renders to run, such as building the docs on CI.
  • Compositor node groups under a new Compositor catalog: Illustrate (flat, illustrative shading from the AO or Shadow pass or a Cone Shadow, with outlines and a flat background), Depth Outline and Outline (outlines from the Depth pass, by a Sobel filter or Goodsell’s Illustrate contour method, optionally with lines from the Normal pass, that survive transparent backgrounds), and Value to Mask and Mask Pixels for masking by an AOV pass. canvas.compositor.illustrate() enables the passes and inserts the composite in one call; canvas.add_aov() and mn.material.add_aov() set up AOV passes; shadow joins the render passes.
  • Parts of David Goodsell’s Illustrate renderer as compositor node groups (reference in docs/dev/illustrate-pipeline.md): Cone Shadow (conical soft shadow from the Depth pass, 32 samples), ID Outline (chain and residue outlines from chain_id/res_id AOVs) and Composite Depth Fog. canvas.compositor.illustrate(shading="cone") shades with the cone shadow; meant for the Flat material.
  • Added the Segment ID attribute input node, which reads the integer segid attribute from the points. #1216
  • Periodic Offset and Periodic Unwrap nodes under Geometry, for orthorhombic and triclinic boxes read from the trajectory each frame. Periodic Offset moves positions through the periodic box, by fractions of the box vectors or by a distance, and wraps them back inside it, into the box or the compact cell around its centre (GROMACS -ur compact). Periodic Unwrap makes groups of atoms whole across the box boundaries, grouped by any Group ID such as the new fragment_id attribute (the bonded molecule of each atom, for structures with bonds, also read by a new Fragment ID node), and can wrap each group’s centre into the box or the compact cell. Periodic Cell makes the mesh and edges of the box or compact cell. Periodic Box has a new Matrix output with the box vectors as columns. #1317
  • Added a general handler that triggers after nodes are added to the tree in the GUI. Sets the default material of style nodes and generates data objects for biological assemblies. #1191
  • Charge attribute input node under Attributes, reading the charge attribute with a fallback of 0.0. #1216
  • Ease Value and Stagger Value nodes under Animate: Penner easing curves (In / Out / In Out) for any 0..1 value or field, and a per-point stagger that gives each ID its own equal-length 0..1 transition.
  • Symmetry Cubic node under Ensemble: builds tetrahedral (12), octahedral (24) or icosahedral (60) assemblies from one copy, with an Orientation to match a deposited structure.
  • Best View and Orient to Best View nodes under Geometry: find the direction from which the most selected atoms can be seen past a style’s meshes, and rotate the geometry so the camera looks from there. For trajectories, views can ease with a half-life, favour the view on screen (Stickiness) and hold it until a better one gains a margin (Hysteresis). Camera Transform gives the equivalent camera pose, to move a camera with a Geometry Attribute constraint and leave the geometry in place. #1171
  • Canvas.look_at(viewpoint=...) accepts "pca", "unobstructed", "visible_area", "raycast" and "entropy" to choose the camera direction from the target, with occluders for what could hide it. Experimental. #1171
  • Hydrogen bonds: mol.calculations.hbonds() adds the hbonds calculation, computing hydrogen bonds with MDAnalysis HydrogenBondAnalysis as edges on a data object rather than as an attribute, and the new Style HBonds node draws them as dashed cylinders following the atom positions. Its distance and angle cutoffs are properties, adjustable in its settings in the Attributes panel. It is listed there as an Object, added from its add menu, and set up when a Style HBonds node is added in the GUI.
  • Find HBonds node: finds hydrogen bonds in the node tree, with the same cutoffs as MDAnalysis, giving each hydrogen’s acceptor as a field. Style HBonds can use it with Source set to Find HBonds instead of a data object.
  • Symmetry Helical takes an Axial Symmetry input for filaments with Cn symmetry about the helix axis, such as amyloid built from two protofilaments.
  • Color Sample Grid node under Color: colors points by sampling a float grid from a volume object, such as an APBS electrostatic potential (.dx) on a molecular surface, with a diverging A / Intermediate / B color range between Min and Max. Its Value output gives the sampled value. Molecule.add_style(color=density) accepts a density entity and colors the style’s output this way. A density can be sampled while it is styled: its grid is kept in the bundle of the styled output (see Import Volume).
  • An Electrostatics guide in the API docs colours a barnase-barstar surface (PDB 1BRS) by its APBS potential. The potential ships as tests/data/1brs_AD_apbs.dx.gz, made by docs/dev/apbs_1brs.py.
  • Densities are imported in their node tree: the object is an empty mesh, and each branch of the tree starts with a new Import Volume node that reads the converted .vdb with Blender’s Import VDB node, instead of the object being a volume made by an import operator. #893 Grids.load() takes a list of files to load as one density, played one file per frame from frame_start (or picked with the node’s Index), for animated densities. #1100 Import Volume keeps its grid in the bundle of its output as MN Grid <Name>, which density styles pass on, so Color Sample Grid can sample several named grids of one styled density. Density trees have no input geometry: density.tree.reset() yields (volume, join), where volume imports the density’s files as they were loaded, and density.tree.import_volume() starts further branches.
  • Gaussian cube files (.cube, .cub, optionally gzipped) load as densities with Grids.load() and the Import Density operator: orbitals, electron densities and electrostatic potentials from quantum chemistry codes (tested with PySCF output), placed on their own (possibly sheared) voxel axes with Bohr converted to Å. Each orbital of a file with several loads as one numbered grid of the density, picked with the Index of its Import Volume node. Molecule.load() reads the atoms of a cube file, with bonds guessed from distances. A test cube of the aspirin HOMO ships as tests/data/2244_homo.cube.gz, made by docs/dev/pyscf_cubes.py.
  • Fetch small molecules from PubChem by CID or name: mn.Molecule.fetch("aspirin", database="pubchem") downloads the 3D conformer as SDF, and the import panel has a Fetch from PubChem button.
  • Align Molecules operator (viewport right-click menu) and Molecule.align_to(): superimpose the selected molecules onto the active one by setting their object transforms. Residues are paired by sequence alignment (biotite’s superimpose_homologs) or, for remote homologs, by structure (superimpose_structural_homologs), so the sequences don’t need to match. The operator opens a dialog listing each molecule’s chains, where optional selections pick the chains to fit on. When the two sides have different numbers of chains (e.g. a Fab’s heavy and light chains against a single-chain scFv), each is joined into one chain and aligned as a whole.
  • Drag and drop MD trajectories into the 3D viewport: drop one topology file (.pdb, .gro, .tpr, .psf, .prmtop, …) together with one or more trajectory files (.xtc, .trr, .dcd, .nc, …) to import them as one Molecule. Several trajectory files are chained in natural filename order (md_2.xtc before md_10.xtc). A .gro dropped on its own imports as a single structure.
  • mn.Canvas() takes view_transform= and background=, e.g. mn.Canvas(view_transform="Standard", background=(1, 1, 1, 1)); left out, the preset’s settings are kept.
  • Calculations in Molecule.calculations can be set to not update on frame changes (calculations.add(name, func, updating=False), calculations.set_updating(name, ...) and a toggle in the Attributes list), keeping their values from when they last ran. A trajectory whose files have no secondary structure gets DSSP as the sec_struct calculation on load, run on the first frame and not updating. DSSP is set up again from its saved settings after a file is reopened, where it previously stopped updating.
  • Trajectory frames with velocities or forces (such as frames of .trr files) store them as the velocity and force point attributes, interpolated and averaged between frames like positions. Frames without them keep the values last stored. velocity is scaled by the world scale; force keeps MDAnalysis units of kJ/(mol·Å). Other per-atom values MDAnalysis reads for each frame are stored too: b_factor and occupancy for each model of a multi-model .pdb file (and of a multi-model .pdb, .cif or .bcif file loaded on its own, when they differ between models), LAMMPS dump additional_columns (q as charge) and .tng additional_blocks, with a ts_ prefix for any other name that would overwrite a built-in attribute. A new Attributes panel, after the Trajectory panel, lists the attributes updated on each frame, from the trajectory, selections and calculations, with an icon for the source of each (also Molecule.frame_attributes) and buttons to show only one source. It replaces the separate Selections list, which was only in the Properties editor: selections are added from the list’s add menu, and the selected selection’s string and settings show below the list. Bake Frames to Collection (Molecule.frames_to_collection()) stores these attributes on each baked frame object as well as positions. A new Force node reads the force attribute, like the Velocity node does for velocity.
  • mol.select() returns a per-atom boolean mask from a selection phrase, AtomGroup, boolean attribute name or index array, for indexing attributes (mol["b_factor"][mol.select("chainID A")] = 100.0), and mol.set_color() sets the Color attribute for a selection: mol.set_color((0.1, 0.7, 0.7), selection="chainID A and resid 19:26"). set_color also takes hex strings (mol.set_color("#00FFCC", "protein")), and colour names: CSS names as MolViewSpec and ChimeraX use them ("salmon", "dark slate gray"), and PyMOL and VMD names with a prefix ("pymol:slate", "vmd:mauve"), or without one where CSS has no colour of that name. They are converted from sRGB to linear by the new mn.color.parse_color() and mn.color.srgb_to_linear(). add_style(color=...) takes the same hex colours and names (mol.add_style("cartoon", color="pymol:slate")), after its keywords and colour attributes.
  • Color PyMOL, Color VMD and Color CSS nodes under Color give PyMOL’s (including its element colours), VMD’s and CSS’s named colours, with the same values as mn.color.parse_color().
  • Calculations from text blocks: subclasses of BaseCalculation defined in a text block, each with a calculate() method returning one value per atom from self.universe, are added as calculations by From Text... in the Attributes list’s add menu or mol.calculations.from_text(text). They are named after the subclass, with the attribute type inferred from the returned values, run once when added so errors such as a wrong length show straight away. When the file is reopened, the text isn’t run: the calculations are listed as not loaded until Reload is pressed, also when Blender’s Auto Run Python Scripts is on, as whether Blender trusts the open file can’t be read from Python. The Reload button below the selected calculation also loads them again after the text changes, such as a text block linked to a .py file edited in an IDE. #1262

Changed

  • Attribute nodes such as Residue Name, Chain ID and B Factor no longer have an Index input, and read their attribute in the domain they are evaluated in. To read another atom’s value, use an Evaluate at Index node, or .point.at(index) from Python, such as ResidueName().o.res_name.point.at(index). Links into the Index input are lost in existing files. #1292
  • The Value input of Ease Value is a 0..1 factor. #1313
  • Boolean attributes such as is_nucleic or is_lipid are not stored on import when no atom is True; a missing boolean attribute reads as False in nodes. #1305
  • Sessions are no longer saved to a .MNSession file next to the .blend. Opening a file rebuilds each entity from the source files or PDB code recorded on its object, and the file list of a multi-file trajectory is now recorded there too. .MNSession files are never read, as unpickling one that came with a downloaded .blend could run arbitrary code. Saving makes the recorded source paths relative to the .blend. Custom calculations added with mol.calculations are not restored: add them again after opening the file.
  • Supports biotite 2.0 as well as 1.7 and 1.8 (biotite>=1.7.1,<3). mmCIF files still read the author chain and residue IDs, which biotite 2.0 no longer uses by default.
  • The Residue Parameter, Chain Parameter, Structure Parameter and Group Parameter nodes list their outputs in the same order: Factor, Index, Count, Is First, Is Last, Index of First and Index of Last (Structure Parameter has only the first three, for atoms and for residues), with Index and Count named for what they count (Atom Index, Residue Count). Residue Parameter and Chain Parameter drop First atom_name, Last atom_name, First res_id and Last res_id: read Atom Name or Residue ID at Index of First or Index of Last with an Evaluate at Index node instead. Structure Parameter’s Index is now Atom Index and it drops Index of First and Index of Last, which were always the first and last atom. Group Parameter’s Relative Index and Group Size are now Index and Count, and it gains Factor, Index of First and Index of Last. Links to renamed or removed outputs are lost in existing files. #1339
  • Molecule.frame and the manual Frame input are now floats, so keyframes on them play back smoothly: frame = 1.5 is halfway between trajectory frames 1 and 2 when Interpolate is on. Keyframes in existing files stop rounding to whole frames when the file is opened. #1282
  • Molecule.uframe is now private: read mol.universe.trajectory.frame for the frame the universe is on, and set mol.frame or canvas.frame to change what is shown. Setting it moved the universe without updating the positions.
  • Subframes no longer applies to the manual frame, as Offset already did not: it is disabled in the panel when Update with Scene is off, and the manual frame is always a trajectory frame. Files that keyed the manual frame with subframes set need those keys divided by Subframes + 1. #1282
  • Setting Canvas.view_transform to Standard also clears the look, so colors come out as specified. The preset’s contrast look was carried over before, which shifted them. Set Canvas.look afterwards to keep a look.
  • Density Style Wire no longer hides small mesh islands by default: Hide Dust is now 0, matching Density Style Surface. The previous default of 20 nm² removed ligand-sized meshes entirely.
  • The box lengths a, b and c of Periodic Box and Periodic Array are in world units (1 m is 1 nm) rather than Å, as distances, matching the other periodic nodes and positions in the tree. The trajectory sets them on frame changes while Update is on, so only values typed by hand, or passed from a script, with Update off need dividing by 10.
  • DSSP moved from mol.dssp to mol.calculations.dssp(selection=None, updating=None), which sets it up if needed, changes only the settings given and returns the DSSPCalculation (previously DSSPManager) with the same show_*, set_selection and compute_frame methods. mol.dssp.init() becomes mol.calculations.dssp(updating=True). The DSSP panel is removed: its settings show when sec_struct is selected in the Attributes list. DSSP is added from the Attributes list’s add menu, and the X on a selection or calculation in the list removes it (a removed calculation’s attribute keeps its last values).
  • DSSP is added as the sec_struct calculation even when it can’t run on its selection, such as "protein" with residues missing backbone atoms. The error is reported, and the calculation fails like any other until its selection is changed in the Attributes panel to one that works.
  • The Ambient Occlusion material is always opaque and no longer fades with Fade Geometry, because ambient occlusion does not work alongside a Transparent BSDF. Its default exponent is now 1.5, for slightly lighter crevices.
  • The Flat material renders without outlines by default; Flat(outline=True) adds them. The Flat Outline material is renamed Fresnel Outline.
  • Animate Action now takes float Start and Length, can run on scene seconds, frames or a linked value, and has built-in Stagger and Easing options.
  • The oxDNA Style Ribbon node is renamed oxDNA Style Classic. Its inputs are now in Å, its defaults match other oxDNA visualisers, Ball Radius no longer changes the backbone radius, base stems and bases share one rotation and end at the centre of the base, a Stem Geometry input takes custom stem geometry, backbone ends are filled, and End Overhang extends strand ends for the Curve backbone. #1213
  • Importing structures is 3-5x faster. Per-atom attributes such as is_backbone and is_peptide test each unique residue or atom name once instead of every atom, and the preset materials read the node asset library once instead of once per node group.
  • Adding a style is 25-50% faster. The node asset library ships uncompressed, which makes each read of it ~40% faster, and add_style links the node groups it needs (style, color scheme, assembly) in one read instead of one read each. The installed extension is ~27 MB larger; saved .blend files are unchanged.
  • Outline Mask, and the outlines of the Flat material, keep the same on-screen width at any camera focal length. Outlines previously grew with focal length and were far too thick on telephoto lenses. The width at the default 50 mm lens is unchanged.
  • Trajectory periodic correction (correct_periodic) works with triclinic boxes, such as rhombic dodecahedra and hexagonal cells, as well as orthorhombic ones, using MDAnalysis’s minimum image convention (MDAnalysis.lib.distances.minimize_vectors). Interpolation uses the box of the current frame and averaging the box of the averaged frame. Frames with no box, or the 1 1 1 90 90 90 placeholder box, are not corrected.
  • Density Style ISO Surface is simplified: its Negative Color and Positive Color inputs are renamed Negative and Positive, a Process Grid closure can modify the grid before it is meshed, and the Visible, contour and slice inputs are removed. The new Mesh Contours node turns the edges of a mesh, such as an ISO surface, into tubes.
  • The Reload operator (mn.session_reload_item) relinks any entity object to the session from its recorded source files or PDB code, replacing mn.reload_trajectory. #1244
  • ty type checking runs in CI alongside ruff. Properties registered on Blender types are read through typed accessors in molecularnodes.blender.registered.

Fixed

  • Reloading a molecule or density, with Reload in the Molecular Nodes panel or reload_entity(), lost its annotations, and reloading a CellPack lost its instance collection. Multi-file trajectories reloaded only their first file. A structure fetched by its code reloads from the file it was downloaded to when that is still there, rather than downloading it again.
  • ures_id gives each residue its own value, also for residues that share a res_id through insertion codes (52, 52A), and is now set for topologies without chains. Residue Parameter, Chain Parameter and Structure Parameter group residues by it, so their values are right for structures with insertion codes. #1339
  • The trajectory frame shown in the panel now updates, it stayed at 0. With interpolated subframes it shows the position between frames, such as 1.50.
  • Trajectories with both Subframes and an Offset no longer jump backwards during playback: interpolation ignored the offset.
  • Selections and calculations that update on frame changes used a later frame than the one shown while interpolating between frames.
  • Cone Shadow nodes update their Pixel Size before each render, so they follow camera and resolution changes made after compositor.illustrate().
  • The pixel size for a perspective camera no longer falls back to the camera clip range with Style Spheres point clouds, which the object’s bounding box misses.
  • Cycles no longer hangs on the virtual GPU of a macOS virtual machine (such as GitHub’s macOS runners): the device is skipped with a warning and Cycles falls back to the CPU.
  • Canvas.load_preset() raises a ValueError when its app template is missing instead of silently loading Blender’s factory startup scene.
  • Molecule.fetch(..., cache=None) failed for every format; the downloaded buffer is now read with the requested format. Molecule.from_file() takes a format for in-memory buffers. #1306
  • .cif files from Phenix (such as phenix.real_space_refine output) now import. Biotite failed on their indented loop_ tags and on the atom-free restraint blocks (data_link_SS) appended after the model. A .cif with several structures in separate data blocks imports as one Molecule per block; from a script, Molecule.load(path, data_block=...) chooses the block.
  • Importing a CellPack model whose name is already taken no longer adds its molecules to the earlier import’s instance collection and node tree.
  • The atom_types attribute of structure files (.pdb, .cif, .bcif, .sdf, .mol) comes from each atom’s element instead of being guessed by MDAnalysis from its atom name. Calcium ions (atom name CA) are no longer typed as carbon, and .sdf / .mol files, which have no atom names, no longer give every atom the same type. Loading is also slightly faster.
  • oxDNA trajectories are restored when reopening a saved .blend file, instead of the .top topology being read with Amber’s parser and failing. #1253
  • An entity that fails to restore when reopening a .blend file (for example because its trajectory file was moved) no longer stops every other entity in the file from restoring. A warning names the entity and points to Reload to relink it. Sessions saved with this version load in older versions as an empty session.
  • The oxDNA style node colours every strand with the strand colours, instead of only strands whose chain_id modulo 4 is non-zero, and the backbone offset uses the correct cross product so the major and minor grooves are no longer swapped. #1213
  • Styles keep the atoms they were given in the MN/Atoms bundle of their output, so Get Geometry Atoms (and add-ons reading an evaluated molecule) can still find the atoms after a style is applied, and styles stack: each joins its result to the earlier styles’ geometry. Evaluate on Atoms Result is now Atoms (default, operate on the geometry directly) or Representation (used by styles), replacing Geometry / Bundle.
  • Styles use the bonds found by Find Bonds again. Evaluate on Atoms no longer attaches the stored MN/Atoms bundle when it returns geometry, so styles read the new geometry instead of the stored atoms. #1231
  • Build Elastic Network builds networks again, with van der Waals radii passed to its Plexus input. Simulating the network is still not fully working. #1229
  • Import operators give clearer error messages for empty or missing file paths. #1242
  • Color to OKLab and OKLab to Color now use Ottosson’s linear-sRGB to LMS matrix instead of the CIE-XYZ one, so OKLab lightness, chroma and hue match the reference values and pure blue is no longer clipped to black on the round trip. Nodes built on them (Color OKLab Mix, Color OKLab Offset, OKLab Offset LCh, the LCh conversions) change appearance slightly.
  • is_alpha_carbon and is_backbone only flag atoms in amino acid and nucleotide residues. Calcium ions (atom name CA) are no longer alpha carbons, and ligands such as ATP, SAM or phosphate no longer count as backbone. Modified residues such as HIC are now is_peptide for every format. #1256
  • Biological assemblies are built from .pdb files, including files with more than one BIOMOLECULE (such as 4INS). Previously .pdb assemblies were never built, and files with several assemblies reported none. Assembly parsing failures now log a warning instead of looking like a file without assemblies. #1257 #1258 #1259
  • Simulate Elastic Network stored twice the mass instead of the inverse mass, and the XPBD edge solver read the partner point’s inverse mass at the edge index rather than the partner’s point index, so constraint corrections were weighted wrongly and the mass-weighted centre drifted.
  • Density grids with non-orthogonal or rotated axes are placed correctly. A .dx file’s full delta matrix and an MRC/CCP4 map’s cell angles now give the voxel axes, written to the .vdb as a full affine transform; previously only the axis lengths were used, so sheared grids such as monoclinic or hexagonal crystallographic maps came out misaligned with their structures. MRC/CCP4 maps with non-90° cells also honour their axis order (mapc/mapr/maps) and start indices. Orthogonal grids are written as before.
  • Density Style ISO Surface no longer clamps Threshold to 0-1, so electrostatic potentials, orbitals and other grids outside that range can be contoured. It meshes at +|Threshold| and -|Threshold|, and the surface of the negative lobe now has outward-facing normals instead of inward ones.
  • Density grids with 64-bit float values, which includes every .dx file, are stored as 32-bit float grids so Blender’s grid nodes (Get Named Grid, Sample Grid) can read them; they ignore double-precision grids. Previously converted .vdb files are converted again on load.
  • Rendering no longer fails when the session holds a starfile or CellPack ensemble, which has no annotations to draw.
  • Toggling the visibility of a starfile or CellPack ensemble object no longer raises an error.
  • The style menus of Import Molecule, Add Style and Swap Style no longer offer Preset 1-4, whose node groups no longer exist; choosing one raised an error.
  • Entity descriptions containing commas, such as (2R,3S,5R)-... in 6ZPA, are no longer split into several entities, which put the entity names in the Color and Select Entity menus out of step with the entities. Chain, entity and segment IDs and unique atom types are stored as JSON; files saved with the earlier comma-joined values still load.

v520.2.0 - 2026-09-18

Added

  • Color matplotlib node: colour a 0 to 1 value with matplotlib’s colormaps, grouped by category, with a reverse toggle.
  • Fade Geometry node, which fades geometry in and out by multiplying the alpha of its Color attribute on the point and instance domains. The Ambient Occlusion material now reads that alpha, so fading works with it as well as with Default and Squishy. #1255
  • Added the Segment ID attribute input node, which reads the integer segid attribute from the points. #1216
  • Charge attribute input node under Attributes, reading the charge attribute with a fallback of 0.0. #1216
  • DSSP takes a selection string (dssp.init(selection=...), default "protein", and a field in the trajectory panel), so termini or non-standard residues missing the required N, CA, C and O atoms can be excluded. Protein residues outside the selection are drawn as loops. #1217

Changed

  • Fixed the spelling of the Evaluate While Planar and Geometry to Planar nodes (previously Evluate While Planar and Geoemtry to Planar). Scripts using mg.EvluateWhilePlanar or mg.GeoemtryToPlanar need the new mg.EvaluateWhilePlanar and mg.GeometryToPlanar names. #1255
  • The lipophobicity attribute is no longer stored on import, and partial charges are no longer looked up from the residue and atom name. Both lookups will return as nodes instead. #1228

Fixed

  • The charge attribute is now the charge read from the file or topology (the PDB charge column, mmCIF pdbx_formal_charge, which mmCIF and BinaryCIF files now read, or a simulation topology’s charges) instead of a partial charge looked up from the residue and atom name that masked it. It is only stored when the file or topology provides charges; the Charge node reads 0.0 otherwise. #1221
  • Manual frame management (Update with Scene off) now uses the same subframes, interpolation, averaging and periodic correction as scene playback, so the manual frame can be keyframed with interpolation between trajectory frames. The offset still only applies to scene playback. #1218
  • Importing with the Spheres style through the GUI always uses a Point cloud again, regardless of the render engine, so large systems stay interactive on import. The engine-dependent Instance default from #1172 still applies to Molecule.add_style() from the Python API. #1220

v520.1.0 - 2026-09-14

Added

  • Added a general handler that triggers after nodes are added to the tree in the GUI. Sets the default material of style nodes and generates data objects for biological assemblies. #1191

v520.0.1 - 2026-09-06

Fixed

  • Text printing in a jupyter notebook crashed rendering #1185

v520.0.0 - 2026-09-05

Added

  • On using the import operators, the camera and viewport end clipping distance is increased to 10000 from 100 so users aren’t confused when importing larger structures and systems #1150

  • Molecule.add_style() accepts a callable for style, selection and color. The callable is evaluated inside the node tree context, so it can build any nodes from molecularnodes.nodes.geometry without having to write out a whole node tree:

    mol.add_style("cartoon", color=lambda: g.ColorSecondaryStructure())
    mol.add_style("sticks", selection=lambda: g.IsPeptide() & g.IsSideChain())
    mol.add_style(lambda: g.StyleSpheres(sphere="Instance", quality=4))

    A callable style defines the style node itself, so selection, material and style keyword arguments cannot be passed alongside it - passing them raises a TypeError rather than silently dropping them.

  • SelectionManager.node() returns a Named Attribute node for a selection, creating the selection if it does not already exist. This is the bridge between selections and the node tree API, and is how an MDAnalysis selection phrase is used inside a callable style:

    mol.add_style(lambda: g.StyleSpheres(selection=mol.selections.node("not protein")))

    Existing selections are reused - matched on the selection string together with the updating and periodic flags, or on name - so repeated calls do not pile up duplicate selections and mesh attributes.

  • SelectionManager.find() looks up an existing selection by the selection string that created it, where get() looks a selection up by its name.

  • Canvas.look_at() takes a margin, the fraction of the frame to leave empty around the subject. It defaults to 0.05, so renders get a little breathing room rather than the subject sitting against the edge of the frame. Set it to 0 to fit the subject exactly, or go negative to crop in past its edges. #1170

  • molecularnodes.framing solves camera framing on a set of positions. fit_camera_to_points() is the exact solve used by look_at(), with fit_orthographic_to_points() for orthographic cameras and enclosing_sphere() for framing that does not change with viewing angle. It is plain numpy, with no dependency on Blender. #1170

Changed

  • add_style(color=...) now validates its argument. A string must be a known keyword ("common", "default", "plddt") or the name of an existing colour attribute on the molecule. Anything else raises a UserWarning and adds no colour, rather than silently rendering the geometry black. This includes names of attributes that exist but are not colours, such as "b_factor" or "lipophobicity".
  • add_style(style=...) is validated against the styles that can actually be dispatched, and the error lists them.
  • add_style("spheres") picks its sphere to suit the render engine. Point clouds are only ray-traced by Cycles, so under EEVEE the spheres came out as octahedra - invisible at whole-protein zoom and glaring on a close-up. EEVEE now gets "Instance", Cycles keeps "Point", and passing sphere yourself always wins. The engine is read when the style is added, so switching engines afterwards does not revisit it. #1172
  • Breaking: Canvas.scene_reset() is renamed Canvas.load_preset(), which is what it does - it loads a whole preset scene, its lighting, camera, world shader and render settings included. The keep_settings argument is gone, and engine now defaults to the engine the preset defines rather than forcing EEVEE. #1169
  • Creating a Canvas no longer wipes the scene. A template given explicitly is always loaded, but left out the “Molecular Nodes” preset is only loaded into a scene with no molecules in it. A first mn.Canvas() still gets the studio lighting, while re-running the same cell - which marimo does on its own - binds to the scene and leaves the work in it alone. Previously it destroyed every molecule in the scene with no warning. Pass template=None to bind without loading anything. #1169
  • Breaking: Canvas.look_at() accepts any number of positions, where it previously expected the 8 vertices of a bounding box. get_view() returns the positions making up a view rather than 8 bounding-box corners - still a list[tuple], so views combine with + as before. blender.utils.get_bounding_box(), look_at_object() and look_at_bbox() are gone. #1170
  • Canvas.look_at() frames the geometry an entity renders rather than the entity’s bounds, so styling one chain of four frames that chain. Every component of the evaluated geometry is taken into account - a style can output a mesh, a point cloud and instances at once, and an object only ever exposes one of them through its data. Point clouds are grown by their radius and instances by the bounds of what they instance, so spheres are framed by their surface rather than their centres. #1170
  • Canvas.clear() empties the scene of content rather than removing only Molecular Nodes entities. The camera, lights, render settings, world shader and compositor are kept, so the canvas is left ready to render whatever is added next, and only the canvas’s own scene is touched. #1169

Fixed

  • add_style() raised a bare KeyError for style names that were accepted by validation but had no corresponding style node - "vdw", "atoms", "sphere" and "ball+stick" among them. These now raise a ValueError naming the supported styles.
  • Saving a .blend silently lost the entire session if any entity’s object had been deleted, from the outliner or otherwise. The save handler raised before writing the .MNSession file while the .blend itself saved normally, so every other molecule and trajectory in the file lost its state on reload. #1169
  • Opening a second .blend left the previous file’s entities in the session, where they raised a LinkedObjectError on any access. #1169
  • MNSession.remove() raised a LinkedObjectError when the object behind an entity had already been deleted. The entity is now dropped either way, so removing is always safe to call - and a single stale entity can no longer abort a whole Canvas.clear(). #1169
  • Canvas.look_at() pulled the camera back further than the subject needed, by a different amount from each direction. It built a mesh from the 8 corners of an axis-aligned bounding box and handed that to Blender’s camera_to_view_selected operator; an axis-aligned box projects larger than the points inside it, and by an amount that changes with the viewing angle. Framing is now solved directly on the positions, so it is exact and consistent from any direction. #1170
  • Canvas.look_at() silently emptied the frame when given more than 8 positions. It was annotated list[tuple] with no check on how many, and anything but a bounding box left the subject a few pixels wide in the middle of an empty frame. #1170
  • get_view() read bound_box before the depsgraph had caught up, so what it returned depended on whether anything had happened to trigger an evaluation - a molecule read straight after add_style() reported the bounds of its atoms rather than of the style built from them. It also mixed spaces, returning object-local bounds without a selection and world-space ones with. Both are now world-space positions read from evaluated geometry. #1170
  • Canvas.clear() leaked data-blocks. A molecule left behind over a hundred of them - its mesh, material and the node groups backing its styles - which accumulated on every load-and-clear cycle, as only a recursive purge collects node groups hanging off an object’s modifier tree. #1169