How to extract frames

Dear All,
Can we extract a few frames out of a large trajectory file?
I would like to extract 1000 particular frames from a trajectory with 100000 frames.
Answers 1
RA
RA 2016-03-20 Best Answer
You can do this in MaterialsScript using the AppendFramesFrom function. This is from the Help:
Using the AppendFramesFrom function
AppendFramesFrom will append frames to an empty trajectory, or one that already has content. To insert frames into the beginning or middle of a trajectory, use InsertFramesFrom.
Frames can only be appended onto a trajectory with a TrajectoryType of trj. This will be the case for any trajectory document created in a script.
Examples
Creating a new trajectory from the first ten frames of another:
my $newdoc = Documents->New("newdoc.xtd");
$newdoc->Trajectory->AppendFramesFrom($doc, Frames(Start => 1, End => 10));