So I actually posted at the start of the week at the Autodesk Forum, but got no replies there. So I hope this community can help me out:
As a life sciences student I’m exploring the capabilities of using Maya to make clear visualizations of protein dynamics simulations. (PELE in this case - protein energy landscape exploration).
Specifically I’m working on a hormone molecule/ligand that can move through a protein over the simulated trajectories.
Maya is very useful in this regard as it can interpolate between simulation time-steps (frames), allowing for smooth animations.
The ligands were imported by script, having their translation and rotation all at 0.
I have been successful in generating an animation of the simulation output by MEL script using the position data of the pivots of the ligands.
Now the animation would be perfect if I could also assign a rotation to each molecule, as they are all exactly the same. Thus it might be possible to write a script for this, that rotates until 2 molecules are perfectly aligned, writing the rotational value to a text file?
I’m really curious if you guys can think of any way this might be done, if possible at all. See the attached picture for the scene we are talking about.
It has to be scripted, in the picture I show only 5 objects (all with Unknown rotation aka 0),
however my full data set comprises of no less then 7170 instances… (which I handle in small chunks).
Translation data is calculated by float $pos[] = xform -q -ws -piv $ligandName;
Polygons only scene (no mMaya needed):
https://www.dropbox.com/s/ybqn0r7qgkiz6gz/1A_1-10.mb?dl=1
Used mMaya plugin: https://clarafi.com/tools/mmaya/
I’m really curious to what you guys think. Madness or might it be feasible?
If you know of any other programs at all which might be able to do these alignments of polygons and query rotational values it would already be a huge help.
Thanks a lot for your input!
Cheers,
Wilglide

