The FXScript Reference

For Final Cut Pro created by Joe Maller

Generator

Generator("name", dest, frame, duration, fps, ["parmName", parmValue, ...])

Additional Notes

Default generator duration

The complete statement is:
Generator "name", duration;

This is the first line in a generator, which states the name of the generator.
All original FCP generators are 2 minutes by default. I.e.:
generator "Text", 120;
is the first line in the FCP Text generator.
So this is a generator with the name 'Text' and the default duration of '120' seconds.

Good to know when the generator is used:
Once the generator is inserted in the timeline, you cannot simply make it longer by dragging the in or out. It will not exceed the default length.
To adjust that: doubleclick the generator and alter the length in the duration tab. Still the clip duration doesn't change, but you are now allowed to drag in or out.
(of course the duration can also be altered before inserting the generator).

Rienk