创建支持服务单
关注

Q100155:在NukeStudio中设置导入素材的帧速率

症状

目前在NukeStudio中,无法通过用户界面更改导入素材的帧率。默认情况下,图像序列将以24 FPS导入,具体取决于编辑>首选项>项目默认值>常规>帧速率中的设置。

解析度

您可以使用Python在脚本编辑器中手动设置NukeStudio中的素材帧速率。以下是为了设置帧率而需要运行的基本命令:


To run this code:

  1. open the Script Editor panel
  2. copy and paste the command into it

     hiero .core.projects()[0].clips()[0].setFramerate(25)
  3. press Ctrl + Enter to run the command.

    It should then update the framerate of the first clip in the first project, 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 square brackets [] define the project. As lists in Python start at 0 rather than 1 in the above case this will be set to the first project. 

The second square brackets [] define the clip from the project, in the above case the first clip.

The end normal brackets () define the framerate FPS value you want your footage set to, in the above case 25.

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

 

 

这篇文章有帮助吗?

我们很遗憾听到

请告诉我们
8 人中有 6 人觉得有帮助