setProjectFrameRange

Prompts the user for received and deliverable handle ranges on the selected read node to calculate project frame range

Updated: 29 November 2013

Author: rsgca

Compatible Nuke versions: 6.0 or later

Compatibility: Linux, Mac, Windows

setprojectframerange-panel.png

Often we recieve plates with frame ranges that don't begin at frame 1. The plates have 48 frame handles but we only need to deliver 8 frame handles. This script will set the selected Read node to start at frame 1 and set the correct handle ranges based on user input.

Saves a few seconds of math.

As an example, the project settings first frame for the settings in the image on the right would be 1 + 48 - 8 (41) and the last frame would 1 + [selected read node's last frame ] - [selected read node's first frame ] - 48 + 8.

Installation

  1. Add setProjectFrameRange.py to your ~/.nuke folder
  2. In ~/.nuke/menu.py, import setProjectFrameRange
  3. Add the command to a menu
import setProjectFrameRange
 
menubar=nuke.menu('Nuke') 
m=menubar.addMenu('&Edit')
#Set Project Frame Range
m.addCommand('&Node/Set Project Frame Range From Node', setProjectFrameRange.callPanel, '^R')

Configuration

You can set the project handle default frame counts (48, 8, and 1 in the image above) in the first portion of the class.

13
14
15
16
17
18
#Set Project Handle Defaults
handlesInHead = 48
handlesInTail = 48
handlesOutHead = 8
handlesOutTail = 8
headOffset = 1

Updates

1.1 - added the headOffset

 

Sign in or register to download or rate.