I may be getting confused; perhaps I'm not understanding gradient in the same way that you understand it; let me try to explain what I know...
Given: A multi-frame object (call it A) with frames 1 to 1344
Create: A new multi-frame object (call it C) that contains 1 less frame (in other words, frames 1 to 1343)
-
- put in words... the ith frame (e.g. grid/mesh/etc.) is constructed by subtraction of the i+1st frame and ith frame in A
If I've got that right then let's march on to your next step...
Kindly,
Alan