Open zeffii opened 8 years ago
I can prepare a file with 'half' protein (about 1000 atoms, about 400 excluding Hydrogens), that would make no sense biologically, but could be useful for experimenting with the code. Would such file be useful?
The idea of having a file for every frame of the trajectory might be OK, and sometimes it is actually requested, especially if one wants to output a bdp file of a conformation calculated by Blender. However, for what I understand, the files in your proposal would only contain the atoms identity and their positions, not the links between them, nor any other information, such as the aminoacid, or protein to which they belong.
I guess this is an answer to a question that I don't know, but it seems to be OK if one has a method for calculating a molecular trajectory and wants to use Blender to visualize the motion. Programs that calculate molecular trajectories typically output them in files of a special kind.
yes, i'd like to write code that can visualize precalculated trajectories - and find an optimal way to do it. The visualizer would not need to know anything about relationships or reactions.
storing this here, until someone gives me a nice file to experiment on:
(I had this written as an answer on Blender.Stackexchange.. preserving here in case it gets deleted if the author of the question deletes it)
I propose
this:
write a file reader that can take each frame's file and
bpy.app.handlers.frame_change_pre
to perform a function on each frame change (pre or post), examplers for this can be found in the documentation.