Defining Frame Ranges

Several dialogs in Nuke, such as the Frames to render and Frames to flipbook dialogs, prompt you for a frame range. To define one, you need to enter a starting frame and an ending frame, separated by a dash. For example, to restrict an action to frames 1, 2, 3, 4, and 5, you would use 1-5 as the frame range.

The following table gives you more examples of frame ranges you can define.

Frame Range

Expands To

3

3

-3

-3

1 3 4 8

1, 3, 4, 8

1-10

1, 2, 3, 4, 5, 6, 7, 8, 9, 10

-3-4

-3, -2, -1, 0, 1, 2, 3, 4

-8--5

-8, -7, -6, -5

1-10×2

(frame range from 1 to 10 in steps of 2)

1, 3, 5, 7, 9

1-10×3

(frame range from 1 to 10 in steps of 3)

1, 4, 7, 10

1-4×1 8-10×1 12-14×1
(multiple ranges separated by spaces)

1, 2, 3, 4, 8, 9, 10, 12, 13, 14

You can use the above ways of defining a frame range everywhere in Nuke. In addition to dialogs, they can be used on the command line (where any frame ranges should be preceded by the -F switch) and in Python statements. For more information, see Command Line Operations and the Nuke Python documentation (Help > Documentation).