Color Node on Frame v1.2


 
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Johnny Chan
Change node color when the time marker hits a specific frame or frame range.
Requirements:
8.0, 7.1 or later
Linux, Mac, Windows
27 May 2017
310

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
Please login in order to download these files.

Comments   

 
0 # Federico Nobili 2015-01-13 14:51
Veri nice script, thanks!
Just a question, can you modify this to work in real-time as "Play" mode? (not just frame by frame, so when i play the comp i can see node color changes)
 
 
0 # Johnny Chan 2016-03-08 03:19
Thanks for the suggestion and sorry for the super late as reply I'll see if it's possible and will release an update :lol:
 
 
0 # nakul sinha 2016-12-16 17:33
Hi Thanks For this..

Just need one help ,

would you please make a script for Render Progress Bar with color changing effects.
 
 
0 # Matt Richardson 2017-01-30 16:59
Great stuff - exactly what I was after.
I agree with Federico that it would be useful for it to update on playback and every time I manually change the frame.
 

You have no rights to post comments

We have 2123 guests and 63 members online