setProjectFrameRange v1.1


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Richard Greenwood
Prompts the user for received and deliverable handle ranges on the selected read node to calculate project frame range
Requirements:
7.0, 6.3, 6.2, 6.1, 6.0 or later
Linux, Mac, Windows
28 Nov 2013
173

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

 

Please login in order to download these files.

You have no rights to post comments

We have 3472 guests and 90 members online