The FXScript Reference

For Final Cut Pro created by Joe Maller

Repeat With Counter

Repeat With Counter = start to finish [step amount] End Repeat

Additional Notes

Simple stepping loop

Counter is a float variable, start and finish can be any numeric variable. An example, stepping from 0 to 10 by twos would look like this:

float x;
repeat with x from 0 to 10 step 2
...
end repeat

// result, x steps through: 0,2,4,6,8,10


Repeat With Counter seems identical to FXScript's implementation of for/next loops.