Changelog
v520.3.0 - 2026-11-23
Added
Select Residue ClassandColor Residue Classnodes select and color amino acids as positively charged, negatively charged, polar uncharged, special case or hydrophobic. #1193- Selenocysteine (
SEC) has ares_namevalue of 20, so it is no longer read as an unknown residue. Canvas.pixel_sizegives the size of one rendered pixel in nanometres for scale bars, andcanvas.camera.orthographicandcanvas.camera.ortho_scaleset up an orthographic camera with an exact scale.compositor.illustrate(id_pass=...)and anID Outlinepanel on theIllustratenode 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()andmol.hiddenleave atoms out of every style, while calculations still see them.Molecule.load()andfetch()takehide=, such ashide="element H", and the same option is theHiddenfield in the Attributes panel and the import dialog, where it starts aswater.hiddenis reserved as a selection name.- Atoms with a boolean
hiddenattribute 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, andGrids.load()takes the samematerialand style inputs, such asthreshold.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_SAMPLESenvironment variable caps the samples of every render from aCanvas, for builds that only need renders to run, such as building the docs on CI. - Compositor node groups under a new
Compositorcatalog:Illustrate(flat, illustrative shading from the AO or Shadow pass or aCone Shadow, with outlines and a flat background),Depth OutlineandOutline(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), andValue to MaskandMask Pixelsfor masking by an AOV pass.canvas.compositor.illustrate()enables the passes and inserts the composite in one call;canvas.add_aov()andmn.material.add_aov()set up AOV passes;shadowjoins 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 fromchain_id/res_idAOVs) andComposite Depth Fog.canvas.compositor.illustrate(shading="cone")shades with the cone shadow; meant for theFlatmaterial. - Added the
Segment IDattribute input node, which reads the integersegidattribute from the points. #1216 Periodic OffsetandPeriodic Unwrapnodes under Geometry, for orthorhombic and triclinic boxes read from the trajectory each frame.Periodic Offsetmoves 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 Unwrapmakes groups of atoms whole across the box boundaries, grouped by anyGroup IDsuch as the newfragment_idattribute (the bonded molecule of each atom, for structures with bonds, also read by a newFragment IDnode), and can wrap each group’s centre into the box or the compact cell.Periodic Cellmakes the mesh and edges of the box or compact cell.Periodic Boxhas a newMatrixoutput 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
Chargeattribute input node under Attributes, reading thechargeattribute with a fallback of0.0. #1216Ease ValueandStagger Valuenodes 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 Cubicnode under Ensemble: builds tetrahedral (12), octahedral (24) or icosahedral (60) assemblies from one copy, with anOrientationto match a deposited structure.Best ViewandOrient to Best Viewnodes 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 Transformgives the equivalent camera pose, to move a camera with a Geometry Attribute constraint and leave the geometry in place. #1171Canvas.look_at(viewpoint=...)accepts"pca","unobstructed","visible_area","raycast"and"entropy"to choose the camera direction from the target, withoccludersfor what could hide it. Experimental. #1171- Hydrogen bonds:
mol.calculations.hbonds()adds thehbondscalculation, computing hydrogen bonds with MDAnalysisHydrogenBondAnalysisas edges on a data object rather than as an attribute, and the newStyle HBondsnode 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 aStyle HBondsnode is added in the GUI. Find HBondsnode: finds hydrogen bonds in the node tree, with the same cutoffs as MDAnalysis, giving each hydrogen’s acceptor as a field.Style HBondscan use it withSourceset toFind HBondsinstead of a data object.Symmetry Helicaltakes anAxial Symmetryinput for filaments with Cn symmetry about the helix axis, such as amyloid built from two protofilaments.Color Sample Gridnode 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 betweenMinandMax. ItsValueoutput 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 (seeImport 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 bydocs/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 Volumenode that reads the converted.vdbwith Blender’sImport VDBnode, instead of the object being a volume made by an import operator. #893Grids.load()takes a list of files to load as one density, played one file per frame fromframe_start(or picked with the node’sIndex), for animated densities. #1100Import Volumekeeps its grid in the bundle of its output asMN Grid <Name>, which density styles pass on, soColor Sample Gridcan sample several named grids of one styled density. Density trees have no input geometry:density.tree.reset()yields(volume, join), wherevolumeimports the density’s files as they were loaded, anddensity.tree.import_volume()starts further branches. - Gaussian cube files (
.cube,.cub, optionally gzipped) load as densities withGrids.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 theIndexof itsImport Volumenode.Molecule.load()reads the atoms of a cube file, with bonds guessed from distances. A test cube of the aspirin HOMO ships astests/data/2244_homo.cube.gz, made bydocs/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 aFetch from PubChembutton. Align Moleculesoperator (viewport right-click menu) andMolecule.align_to(): superimpose the selected molecules onto the active one by setting their object transforms. Residues are paired by sequence alignment (biotite’ssuperimpose_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 oneMolecule. Several trajectory files are chained in natural filename order (md_2.xtcbeforemd_10.xtc). A.grodropped on its own imports as a single structure. mn.Canvas()takesview_transform=andbackground=, e.g.mn.Canvas(view_transform="Standard", background=(1, 1, 1, 1)); left out, the preset’s settings are kept.- Calculations in
Molecule.calculationscan 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 thesec_structcalculation 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
.trrfiles) store them as thevelocityandforcepoint attributes, interpolated and averaged between frames like positions. Frames without them keep the values last stored.velocityis scaled by the world scale;forcekeeps MDAnalysis units of kJ/(mol·Å). Other per-atom values MDAnalysis reads for each frame are stored too:b_factorandoccupancyfor each model of a multi-model.pdbfile (and of a multi-model.pdb,.cifor.bciffile loaded on its own, when they differ between models), LAMMPS dumpadditional_columns(qascharge) and.tngadditional_blocks, with ats_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 (alsoMolecule.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 newForcenode reads theforceattribute, like theVelocitynode does forvelocity. 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), andmol.set_color()sets theColorattribute for a selection:mol.set_color((0.1, 0.7, 0.7), selection="chainID A and resid 19:26").set_coloralso 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 newmn.color.parse_color()andmn.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 VMDandColor CSSnodes under Color give PyMOL’s (including its element colours), VMD’s and CSS’s named colours, with the same values asmn.color.parse_color().- Calculations from text blocks: subclasses of
BaseCalculationdefined in a text block, each with acalculate()method returning one value per atom fromself.universe, are added as calculations byFrom Text...in the Attributes list’s add menu ormol.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.pyfile edited in an IDE. #1262
Changed
- Attribute nodes such as
Residue Name,Chain IDandB Factorno longer have anIndexinput, and read their attribute in the domain they are evaluated in. To read another atom’s value, use anEvaluate at Indexnode, or.point.at(index)from Python, such asResidueName().o.res_name.point.at(index). Links into theIndexinput are lost in existing files. #1292 - The
Valueinput ofEase Valueis a 0..1 factor. #1313 - Boolean attributes such as
is_nucleicoris_lipidare not stored on import when no atom isTrue; a missing boolean attribute reads asFalsein nodes. #1305 - Sessions are no longer saved to a
.MNSessionfile 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..MNSessionfiles are never read, as unpickling one that came with a downloaded.blendcould run arbitrary code. Saving makes the recorded source paths relative to the.blend. Custom calculations added withmol.calculationsare 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 ParameterandGroup Parameternodes list their outputs in the same order:Factor,Index,Count,Is First,Is Last,Index of FirstandIndex of Last(Structure Parameterhas only the first three, for atoms and for residues), withIndexandCountnamed for what they count (Atom Index,Residue Count).Residue ParameterandChain ParameterdropFirst atom_name,Last atom_name,First res_idandLast res_id: readAtom NameorResidue IDatIndex of FirstorIndex of Lastwith anEvaluate at Indexnode instead.Structure Parameter’sIndexis nowAtom Indexand it dropsIndex of FirstandIndex of Last, which were always the first and last atom.Group Parameter’sRelative IndexandGroup Sizeare nowIndexandCount, and it gainsFactor,Index of FirstandIndex of Last. Links to renamed or removed outputs are lost in existing files. #1339 Molecule.frameand the manualFrameinput are now floats, so keyframes on them play back smoothly:frame = 1.5is halfway between trajectory frames 1 and 2 whenInterpolateis on. Keyframes in existing files stop rounding to whole frames when the file is opened. #1282Molecule.uframeis now private: readmol.universe.trajectory.framefor the frame the universe is on, and setmol.frameorcanvas.frameto change what is shown. Setting it moved the universe without updating the positions.Subframesno longer applies to the manual frame, asOffsetalready did not: it is disabled in the panel whenUpdate with Sceneis off, and the manual frame is always a trajectory frame. Files that keyed the manual frame with subframes set need those keys divided bySubframes + 1. #1282- Setting
Canvas.view_transformtoStandardalso clears the look, so colors come out as specified. The preset’s contrast look was carried over before, which shifted them. SetCanvas.lookafterwards to keep a look. Density Style Wireno longer hides small mesh islands by default:Hide Dustis now 0, matchingDensity Style Surface. The previous default of 20 nm² removed ligand-sized meshes entirely.- The box lengths
a,bandcofPeriodic BoxandPeriodic Arrayare 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 whileUpdateis on, so only values typed by hand, or passed from a script, withUpdateoff need dividing by 10. - DSSP moved from
mol.dssptomol.calculations.dssp(selection=None, updating=None), which sets it up if needed, changes only the settings given and returns theDSSPCalculation(previouslyDSSPManager) with the sameshow_*,set_selectionandcompute_framemethods.mol.dssp.init()becomesmol.calculations.dssp(updating=True). The DSSP panel is removed: its settings show whensec_structis 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_structcalculation 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 Occlusionmaterial is always opaque and no longer fades withFade Geometry, because ambient occlusion does not work alongside a Transparent BSDF. Its default exponent is now 1.5, for slightly lighter crevices. - The
Flatmaterial renders without outlines by default;Flat(outline=True)adds them. TheFlat Outlinematerial is renamedFresnel Outline. Animate Actionnow takes floatStartandLength, can run on scene seconds, frames or a linked value, and has built-inStaggerandEasingoptions.- The
oxDNA Style Ribbonnode is renamedoxDNA Style Classic. Its inputs are now in Å, its defaults match other oxDNA visualisers,Ball Radiusno longer changes the backbone radius, base stems and bases share one rotation and end at the centre of the base, aStem Geometryinput takes custom stem geometry, backbone ends are filled, andEnd Overhangextends strand ends for theCurvebackbone. #1213 - Importing structures is 3-5x faster. Per-atom attributes such as
is_backboneandis_peptidetest 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_stylelinks 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.blendfiles are unchanged. Outline Mask, and the outlines of theFlatmaterial, 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 the1 1 1 90 90 90placeholder box, are not corrected. Density Style ISO Surfaceis simplified: itsNegative ColorandPositive Colorinputs are renamedNegativeandPositive, aProcess Gridclosure can modify the grid before it is meshed, and theVisible, contour and slice inputs are removed. The newMesh Contoursnode 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, replacingmn.reload_trajectory. #1244 tytype checking runs in CI alongside ruff. Properties registered on Blender types are read through typed accessors inmolecularnodes.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_idgives each residue its own value, also for residues that share ares_idthrough insertion codes (52, 52A), and is now set for topologies without chains.Residue Parameter,Chain ParameterandStructure Parametergroup 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
Subframesand anOffsetno 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 Shadownodes update theirPixel Sizebefore each render, so they follow camera and resolution changes made aftercompositor.illustrate().- The pixel size for a perspective camera no longer falls back to the camera clip range with
Style Spherespoint 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 aValueErrorwhen 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 aformatfor in-memory buffers. #1306.ciffiles from Phenix (such asphenix.real_space_refineoutput) now import. Biotite failed on their indentedloop_tags and on the atom-free restraint blocks (data_link_SS) appended after the model. A.cifwith 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_typesattribute 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 nameCA) are no longer typed as carbon, and.sdf/.molfiles, 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
.blendfile, instead of the.toptopology being read with Amber’s parser and failing. #1253 - An entity that fails to restore when reopening a
.blendfile (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_idmodulo 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/Atomsbundle of their output, soGet 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 AtomsResultis nowAtoms(default, operate on the geometry directly) orRepresentation(used by styles), replacingGeometry/Bundle. - Styles use the bonds found by
Find Bondsagain.Evaluate on Atomsno longer attaches the storedMN/Atomsbundle when it returns geometry, so styles read the new geometry instead of the stored atoms. #1231 Build Elastic Networkbuilds networks again, with van der Waals radii passed to itsPlexusinput. Simulating the network is still not fully working. #1229- Import operators give clearer error messages for empty or missing file paths. #1242
Color to OKLabandOKLab to Colornow 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_carbonandis_backboneonly flag atoms in amino acid and nucleotide residues. Calcium ions (atom nameCA) are no longer alpha carbons, and ligands such as ATP, SAM or phosphate no longer count as backbone. Modified residues such as HIC are nowis_peptidefor every format. #1256- Biological assemblies are built from
.pdbfiles, including files with more than oneBIOMOLECULE(such as 4INS). Previously.pdbassemblies 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 Networkstored 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
.dxfile’s fulldeltamatrix and an MRC/CCP4 map’s cell angles now give the voxel axes, written to the.vdbas 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 Surfaceno longer clampsThresholdto 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
.dxfile, 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.vdbfiles 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 matplotlibnode: colour a 0 to 1 value with matplotlib’s colormaps, grouped by category, with a reverse toggle.Fade Geometrynode, which fades geometry in and out by multiplying the alpha of itsColorattribute on the point and instance domains. TheAmbient Occlusionmaterial now reads that alpha, so fading works with it as well as withDefaultandSquishy. #1255- Added the
Segment IDattribute input node, which reads the integersegidattribute from the points. #1216 Chargeattribute input node under Attributes, reading thechargeattribute with a fallback of0.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 PlanarandGeometry to Planarnodes (previouslyEvluate While PlanarandGeoemtry to Planar). Scripts usingmg.EvluateWhilePlanarormg.GeoemtryToPlanarneed the newmg.EvaluateWhilePlanarandmg.GeometryToPlanarnames. #1255 - The
lipophobicityattribute 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
chargeattribute is now the charge read from the file or topology (the PDB charge column, mmCIFpdbx_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; theChargenode reads0.0otherwise. #1221 - Manual frame management (
Update with Sceneoff) 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
Pointcloud again, regardless of the render engine, so large systems stay interactive on import. The engine-dependentInstancedefault from #1172 still applies toMolecule.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 forstyle,selectionandcolor. The callable is evaluated inside the node tree context, so it can build any nodes frommolecularnodes.nodes.geometrywithout 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
styledefines the style node itself, soselection,materialand style keyword arguments cannot be passed alongside it - passing them raises aTypeErrorrather than silently dropping them.SelectionManager.node()returns aNamed Attributenode 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
updatingandperiodicflags, or onname- 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, whereget()looks a selection up by its name.Canvas.look_at()takes amargin, the fraction of the frame to leave empty around the subject. It defaults to0.05, so renders get a little breathing room rather than the subject sitting against the edge of the frame. Set it to0to fit the subject exactly, or go negative to crop in past its edges. #1170molecularnodes.framingsolves camera framing on a set of positions.fit_camera_to_points()is the exact solve used bylook_at(), withfit_orthographic_to_points()for orthographic cameras andenclosing_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 aUserWarningand 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 itssphereto 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 passingsphereyourself 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 renamedCanvas.load_preset(), which is what it does - it loads a whole preset scene, its lighting, camera, world shader and render settings included. Thekeep_settingsargument is gone, andenginenow defaults to the engine the preset defines rather than forcing EEVEE. #1169 - Creating a
Canvasno longer wipes the scene. Atemplategiven explicitly is always loaded, but left out the “Molecular Nodes” preset is only loaded into a scene with no molecules in it. A firstmn.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. Passtemplate=Noneto 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 alist[tuple], so views combine with+as before.blender.utils.get_bounding_box(),look_at_object()andlook_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 itsdata. 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. #1170Canvas.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 bareKeyErrorfor style names that were accepted by validation but had no corresponding style node -"vdw","atoms","sphere"and"ball+stick"among them. These now raise aValueErrornaming the supported styles.- Saving a
.blendsilently lost the entire session if any entity’s object had been deleted, from the outliner or otherwise. The save handler raised before writing the.MNSessionfile while the.blenditself saved normally, so every other molecule and trajectory in the file lost its state on reload. #1169 - Opening a second
.blendleft the previous file’s entities in the session, where they raised aLinkedObjectErroron any access. #1169 MNSession.remove()raised aLinkedObjectErrorwhen 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 wholeCanvas.clear(). #1169Canvas.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’scamera_to_view_selectedoperator; 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. #1170Canvas.look_at()silently emptied the frame when given more than 8 positions. It was annotatedlist[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. #1170get_view()readbound_boxbefore the depsgraph had caught up, so what it returned depended on whether anything had happened to trigger an evaluation - a molecule read straight afteradd_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. #1170Canvas.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