ModifyAnimFrames(id, frames[, pos])
frames, then the animation is extended by this number of frames. If you specify a negative value, the number of frames specified are removed from the animation.
The optional argument
pos can be used to specify where the new
frames shall be inserted or from where the frames shall be removed,
respectively. If you do not specify the optional argument or set
it to 0, frames are added at the end of the animation or removed from
the end of the animation, respectively.
This command works only with animations buffered entirely in memory. You cannot use it for animations that are played directly from disk.
ModifyAnimFrames(1, -5, 1)The code above removes the first five frames from animation number 1.