Color Node on Frame

Change node color when the time marker hits a specific frame or frame range.

Updated: 27 May 2017

Author: johnnyvfx

Compatible Nuke versions: 7.1 or later

Compatibility: Linux, Mac, Windows

A workmate needed some kind of Node Color indicator when the 'time marker' hits a certian frame or frame range.
So he asked me if I could write a script for that, I thought I'll share it to you guys. ^_^

This script will read the number values within a nodes 'label' property entered by the user (eg.'15-20' or '15') if the current frame is equal to or within its range then it will change the nodes color to RED.

 

colourNode anim


How to Use

  1. Install 'Color Node on Frame' script (see bottom of page for install steps).
  2. Once installed you have a new menu named 'PicoStyle>Color on Frame'

    colorNode menu
  3. Selected a node that you want to modify under the label properties add a frame or frame range to your liking.

    colorNode label
  4. Using the hotkeys you can advance next frame, previous frame and toggle, see the node change colors.
  • alt + .  : advance next frame.
  • alt + , : advance previous frame.
  • alt + / : toggle colors on current frame

How to Install

  1. Download the zip file from the 'Download Script' button above.
  2. Unzip the package and then copy the 'menu.py' and the 'ColorNodeOnFrame.py' folder into your '.nuke' folder.
  3. Restart Nuke and you should have a menu named 'PicoStyle'
  • If you already have an existing 'menu.py' file you'll need to add this snippet:
    import nuke
    import ColorNodeOnFrame
    
    main_menu = nuke.menu('Nuke')
    pico_menu = main_menu.addMenu('PicoStyle')
    pico_menu.addCommand('Colour on Frame/Next Frame', 'ColorNodeOnFrame.color_on_next_frame()', 'alt+.')
    pico_menu.addCommand('Colour on Frame/Last Frame', 'ColorNodeOnFrame.color_on_prev_frame()', 'alt+,')
    pico_menu.addCommand('Colour on Frame/Toggle Colored On | Off', 'ColorNodeOnFrame.color_on_current_frame()', 'alt+/')
Version Notes:
  • v1.1 allows the user to pass both frame ranges and frames separated by a comma.
  • v1.1 now allows the user to easily change the indicator color through the nuke preferences.

    colorNode prefs

Sign in or register to download or rate.