Hi,
I was wondering if there was a script to extract the atomic positions from a materials studio .trj file? I need to extract the positions to analyse them but I can only get the current frames positions and its quite a long (Forcite) trajectory.
If there isn't a script already would it be possible to write one?
Thanks.
I was wondering if there was a script to extract the atomic positions from a materials studio .trj file? I need to extract the positions to analyse them but I can only get the current frames positions and its quite a long (Forcite) trajectory.
If there isn't a script already would it be possible to write one?
Thanks.

All you need to do is:
1. Get the collection of atoms
2. Go through each frame in the trajectory and export the atom positions
In fact, all the relevant bits are already written! The scripting tutorial in the online help has an example of working through a trajectory frame-by-frame. The XYZ exporter script in the forums shows an example of getting the coordinates in an xyz format. You just need to tweak these for whatever format you want, or store them for analysis.
Note that the script will not be specific to Forcite .trj documents but will also work with .arc and .his trajectories.
Cheers
Stephen