Closed yuxuanzhuang closed 11 months ago
Thanks for writing this up! It's exciting to have so much potential in an idea that is already most of the way there. For the caveats, I don't think clashes with the currently implemented animation or selection system inside of Geometry Nodes will be a problem. Already we have seen by just not adding the animation node, everything pretty much works out of the box.
Ping @tubiana I think you would be interested in this. There is already some working examples showing interaction between notebooks and a live Blender session, streaming the MDAnalysis universe.
Issue Description:
We are planning to enhance the capabilities of MolecularNodes by integrating the ability to access and stream trajectories using MDAnalysis. This feature would enable users to
Proposed Design:
To implement this feature, we propose the following design in scripting:
start a session
show atoms
Persistence
Example:
Expected Benefits:
Expected Caveats:
MDAnalysisSession
(together withUniverse
) will be dumped into a tmp location during saving .blend file i.e.~/.blender_mda_session/
by default.potentially create conflicts with the current animation engine and the selection process within the geometric node.Tasks (
taskwill not be implemented in this PR):MDAnalysisSession
andAtomGroupInBlender
.Function to switch representationsAtomgroup
with variable n_atoms i.e. a dynamic selection of atomsUpdate attributes if the topology is modifiedways to add new time-evolved attributes and display in blender (e.g. occupancy)Benchmark on streamingFuture direction