Q100155: Setting the frame rate for imported footage in Nuke Studio

Follow

SYMPTOMS

Prior to Nuke Studio 13.1, there was no way to change the frame rate of imported footage via the user interface. By default the image sequences will import at 24 FPS, based on the setting in Edit > Preferences > Project Defaults > General > frame rate.

RESOLUTION

Please click the headers below for guidance on how to set the frame rate of footage, depending on your Nuke Studio version.

Nuke Studio 13.1 and later: With current releases from Nuke Studio 13.1 and onward, the right-click contextual menu now hosts the ability to adjust the frame rate per clip in the Project bin:

mceclip0.png

To change the frame rate of a clip:

  1. In Nuke Studio, import footage to the Project's bin.
  2. Select the clip, then right-click to open the contextual menu.
  3. Hover the mouse on Clip > Set Frame Rate, and left-click to choose any value.

Performing the above will change the individual clip's FPS. More information regarding this feature can be found in our 13.1 Release notes here.

 

Nuke Studio 13.0 and earlier:

You can manually set the frame rate of footage in Nuke Studio in the Script Editor using Python. Below is the basic command that you need to run in order to set the frame rate:

hiero.core.projects()[0].clips()[0].setFramerate(25)

To run this code:

  1. Open the Script Editor panel.
  2. Copy and paste the following command into it: hiero.core.projects()[0].clips()[0].setFramerate(25)
  3. Press Ctrl + Enter to run the command.

After performing the above, the frame rate of the first clip in the first project should be updated to 25 FPS.

Code logic

The code works by selecting the project, then the clip and then setting the framerate for that clip to the value defined.

The first set of square brackets [n] define the project. As Pythonic lists start at 0 rather than 1, this will be set to the first project with the above command. 

The second set of square brackets [n] define the clip from the project, in the above case the first clip as [0].

The end parenthesis (n) define the frame rate FPS value you want your footage set to, in the above case (25).

You can adjust the three numbers to set the frame rate of the clip in the project you want, to your desired framerate.

    We're sorry to hear that

    Please tell us why